From 323b05f4de37cbdcf6a118baeb9904180e503798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20R=C3=ADos=20Flores?= Date: Fri, 29 Sep 2017 12:30:02 +0200 Subject: [PATCH] Issue #1901: Budget related entries in Management shouldn't appear if budgets are globally disabled. --- app/views/management/_menu.html.erb | 48 ++++++++++++++++------------- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/app/views/management/_menu.html.erb b/app/views/management/_menu.html.erb index 050e5eb7f..e70ec9ee5 100644 --- a/app/views/management/_menu.html.erb +++ b/app/views/management/_menu.html.erb @@ -44,21 +44,25 @@ <% end %> -
  • > - <%= link_to create_investments_management_budgets_path do %> - - <%= t("management.menu.create_budget_investment") %> - <% end %> -
  • + <% if Setting['feature.budgets'] %> +
  • > + <%= link_to create_investments_management_budgets_path do %> + + <%= t("management.menu.create_budget_investment") %> + <% end %> +
  • + <% end %> -
  • > - <%= link_to support_investments_management_budgets_path do %> - - <%= t("management.menu.support_budget_investments") %> - <% end %> -
  • + <% if Setting['feature.budgets'] %> +
  • > + <%= link_to support_investments_management_budgets_path do %> + + <%= t("management.menu.support_budget_investments") %> + <% end %> +
  • + <% end %>
  • > <%= link_to print_management_proposals_path do %> @@ -74,13 +78,15 @@ <% end %>
  • -
  • > - <%= link_to print_investments_management_budgets_path do %> - - <%= t("management.menu.print_budget_investments") %> - <% end %> -
  • + <% if Setting['feature.budgets'] %> +
  • > + <%= link_to print_investments_management_budgets_path do %> + + <%= t("management.menu.print_budget_investments") %> + <% end %> +
  • + <% end %>