From f9c4649fd1682cc1087af09c2d8a0c9da872284a Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Mon, 9 Jan 2017 17:09:40 +0100 Subject: [PATCH] adds active class on subnavigation for budgets investments --- app/views/shared/_subnavigation.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/shared/_subnavigation.html.erb b/app/views/shared/_subnavigation.html.erb index dee5f53c2..ed5694f27 100644 --- a/app/views/shared/_subnavigation.html.erb +++ b/app/views/shared/_subnavigation.html.erb @@ -30,7 +30,10 @@ <% end %> <% if feature?(:budgets) %>
  • - <%= 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" %>
  • <% end %>