Extract method to check the current phase
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<ul class="no-bullet budget-phases">
|
||||
<% budget.published_phases.each do |phase| %>
|
||||
<li class="phase <%= "is-active" if phase == budget.current_phase %>">
|
||||
<li class="phase <%= "is-active" if phase.current? %>">
|
||||
<h3><%= t("budgets.phase.#{phase.kind}") %></h3>
|
||||
<span>
|
||||
<%= l(phase.starts_at.to_date, format: :long) if phase.starts_at.present? %>
|
||||
|
||||
Reference in New Issue
Block a user