removes budget steps on header

This commit is contained in:
decabeza
2018-01-19 13:29:04 +01:00
committed by Bertocq
parent 17671fa29b
commit f722caac24
3 changed files with 3 additions and 8 deletions

View File

@@ -55,10 +55,6 @@ class Budget
end
end
def step_number
budget.published_phases.index(self) + 1 || 0
end
private
def prev_phase_dates_valid?

View File

@@ -16,8 +16,7 @@
</div>
<div class="small-12 medium-3 column info padding" data-equalizer-watch>
<p>
<% steps = "(#{@budget.current_phase.step_number}/#{@budget.published_phases.count})" %>
<strong><%= t('budgets.show.phase') %> <%= steps %></strong>
<strong><%= t('budgets.show.phase') %></strong>
</p>
<h2><%= t("budgets.phase.#{@budget.phase}") %></h2>