Link to results without heading unless its on the results menu

This commit is contained in:
Bertocq
2017-07-12 13:36:02 +02:00
committed by Javi Martín
parent c5a4a427c4
commit 6a46719ff8
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@
<% if @budget.finished? %>
<%= 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" %>
<% end %>
</div>

View File

@@ -25,7 +25,7 @@
<% if @budget.finished? %>
<li class="tabs-title">
<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>
<% end %>
<li class="tabs-title is-active">