From 3bbdffceaf13a603cc0c3f30021fc257f410824b Mon Sep 17 00:00:00 2001 From: Angel Perez Date: Mon, 2 Jul 2018 17:12:43 -0400 Subject: [PATCH] Remove conditional to render tabs on budgets/stats#show 'Results' and 'Execution' tabs are now shown to the user regardless of the budget's current status --- app/views/budgets/stats/show.html.erb | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/app/views/budgets/stats/show.html.erb b/app/views/budgets/stats/show.html.erb index 180834fe5..af91054cc 100644 --- a/app/views/budgets/stats/show.html.erb +++ b/app/views/budgets/stats/show.html.erb @@ -25,20 +25,16 @@
    - <% if @budget.finished? %> -
  • - <%= t("shared.you_are_in") %> - <%= link_to t("budgets.results.link"), budget_results_path(@budget) %> -
  • - <% end %> +
  • + <%= t("shared.you_are_in") %> + <%= link_to t("budgets.results.link"), budget_results_path(@budget) %> +
  • <%= link_to t("budgets.stats.link"), budget_stats_path(@budget), class: "is-active" %>
  • - <% if @budget.finished? %> -
  • - <%= link_to t("budgets.executions.link"), budget_executions_path(@budget) %> -
  • - <% end %> +
  • + <%= link_to t("budgets.executions.link"), budget_executions_path(@budget) %> +