Add links between Budget stats and results routes
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user