Link to results without heading unless its on the results menu
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
<% if @budget.finished? %>
|
<% if @budget.finished? %>
|
||||||
<%= link_to t("budgets.show.see_results"),
|
<%= link_to t("budgets.show.see_results"),
|
||||||
budget_results_path(@budget, heading_id: @budget.headings.first),
|
budget_results_path(@budget),
|
||||||
class: "button margin-top expanded" %>
|
class: "button margin-top expanded" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
<% if @budget.finished? %>
|
<% if @budget.finished? %>
|
||||||
<li class="tabs-title">
|
<li class="tabs-title">
|
||||||
<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, heading_id: @budget.headings.first.to_param) %>
|
<%= link_to t("budgets.results.link"), budget_results_path(@budget) %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<li class="tabs-title is-active">
|
<li class="tabs-title is-active">
|
||||||
|
|||||||
Reference in New Issue
Block a user