Highlight current heading on results list
This commit is contained in:
@@ -236,6 +236,11 @@ a {
|
||||
border-bottom: 2px solid $brand;
|
||||
color: $brand;
|
||||
}
|
||||
|
||||
&.bold {
|
||||
font-weight: bold;
|
||||
color: $brand;
|
||||
}
|
||||
}
|
||||
|
||||
&.no-margin-top {
|
||||
|
||||
@@ -26,7 +26,8 @@
|
||||
</li>
|
||||
|
||||
<% @budget.headings.each do |heading| %>
|
||||
<li>
|
||||
<% active_class = heading.id.to_s == params[:heading_id] ? 'bold' : '' %>
|
||||
<li class="<%= active_class %>">
|
||||
<%= link_to heading.name,
|
||||
budget_results_path(@budget, heading_id: heading.id) %>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user