resources.insert(0, s.project)
s=s.parent
end
-
- items_count = resources.size
- items_count+=1 if @review
%>
<li class="first"><%= message("qualifiers.#{resources[0].qualifier}") -%></li>
<%
resources.each_with_index do |resource, index|
- css_class=(index==items_count-1 ? 'selected' : '')
%>
- <li class="<%= css_class -%>">
+ <li>
<%= qualifier_icon(resource) -%>
<%= link_to(h(resource.name),
# ======== Path for review ========
if @review
%>
- <li class="selected">
+ <li>
<%= link_to message('review') + ' #' + @review.id.to_s -%>
</li>
<%
end
%>
- <li class="last"> </li>
+ <li> </li>
</ul>
</div>
<% end %>
\ No newline at end of file
padding: 0 10px 0 5px;
}
-#crumbs > ul > li.first-selected {
- background: #4B9FD5;
- border-left: 2px solid #4B9FD5;
- border-bottom: 1px solid #4B9FD5;
- padding: 0 10px 0 5px;
-}
-
-#crumbs > ul > li.selected {
- background: #4B9FD5 url("../images/bc-gray-blue.png") no-repeat left;
-}
-
-#crumbs > ul > li.last {
- background: #EFEFEF url("../images/bc-blue-gray.png") no-repeat left;
- border-bottom: #CCC;
-}
-
#crumbs > ul > li img {
vertical-align: text-bottom;
margin-right: -5px;
}
-#crumbs > ul > li.selected a, #crumbs > ul > li.first-selected a {
- color: #FFF;
-}
#crumbs > ul > li a {
text-decoration: none;
}