adds active class on subnavigation for budgets investments

This commit is contained in:
Alberto Garcia Cabeza
2017-01-09 17:09:40 +01:00
parent 5fa6131e28
commit f9c4649fd1

View File

@@ -30,7 +30,10 @@
<% end %> <% end %>
<% if feature?(:budgets) %> <% if feature?(:budgets) %>
<li> <li>
<%= link_to t("layouts.header.budgets"), budgets_path, class: ("active" if controller_name == "budgets"), accesskey: "b" %> <%= layout_menu_link_to t("layouts.header.budgets"),
budgets_path,
controller_name == "budgets" || controller_name == "investments",
accesskey: "b" %>
</li> </li>
<% end %> <% end %>
</ul> </ul>