Add links between Budget stats and results routes

This commit is contained in:
Bertocq
2017-07-12 12:36:13 +02:00
committed by Javi Martín
parent 4691b486b0
commit c5a4a427c4
3 changed files with 10 additions and 4 deletions

View File

@@ -31,6 +31,9 @@
<li class="tabs-title"> <li class="tabs-title">
<%= link_to t("budgets.results.link"), budget_results_path(@budget) %> <%= link_to t("budgets.results.link"), budget_results_path(@budget) %>
</li> </li>
<li class="tabs-title">
<%= link_to t("budgets.stats.link"), budget_stats_path(@budget) %>
</li>
<li class="tabs-title is-active"> <li class="tabs-title is-active">
<%= link_to t("budgets.executions.link"), budget_executions_path(@budget), class: "is-active" %> <%= link_to t("budgets.executions.link"), budget_executions_path(@budget), class: "is-active" %>
</li> </li>

View File

@@ -31,6 +31,9 @@
<span class="show-for-sr"><%= t("shared.you_are_in") %></span> <span class="show-for-sr"><%= t("shared.you_are_in") %></span>
<%= link_to t("budgets.results.link"), budget_results_path(@budget), class: "is-active" %> <%= link_to t("budgets.results.link"), budget_results_path(@budget), class: "is-active" %>
</li> </li>
<li class="tabs-title">
<%= link_to t("budgets.stats.link"), budget_stats_path(@budget) %>
</li>
<li class="tabs-title"> <li class="tabs-title">
<%= link_to t("budgets.executions.link"), budget_executions_path(@budget) %> <%= link_to t("budgets.executions.link"), budget_executions_path(@budget) %>
</li> </li>

View File

@@ -22,13 +22,13 @@
<div class="row margin-top"> <div class="row margin-top">
<div class="small-12 column"> <div class="small-12 column">
<ul class="tabs"> <ul class="tabs">
<!-- Pending results tab <% if @budget.finished? %>
<li class="tabs-title"> <li class="tabs-title">
<%# link_to t("budget.results.link"), budget_results_path(@budget) %> <span class="show-for-sr"><%= t("shared.you_are_in") %></span>
<%= link_to t("budgets.results.link"), budget_results_path(@budget, heading_id: @budget.headings.first.to_param) %>
</li> </li>
--> <% end %>
<li class="tabs-title is-active"> <li class="tabs-title is-active">
<span class="show-for-sr"><%= t("shared.you_are_in") %></span>
<%= link_to t("budgets.stats.link"), budget_stats_path(@budget), class: "is-active" %> <%= link_to t("budgets.stats.link"), budget_stats_path(@budget), class: "is-active" %>
</li> </li>
</ul> </ul>