Skip to content

Commit

Permalink
Remove unnecesary budget status check
Browse files Browse the repository at this point in the history
  • Loading branch information
bertocq committed Jul 11, 2017
1 parent 29e023f commit e6490b1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/views/budgets/stats/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@
<div class="row margin-top">
<div class="small-12 column">
<ul class="tabs">
<% if @budget.finished? %>
<li class="tabs-title">
<%= link_to t("budgets.results.link"), budget_results_path(@budget) %>
</li>
<% end %>
<li class="tabs-title">
<%= link_to t("budgets.results.link"), budget_results_path(@budget, heading_id: @budget.headings.first) %>
</li>
<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" %>
Expand Down

0 comments on commit e6490b1

Please sign in to comment.