adds new partial for phases info on budget homepage
This commit is contained in:
17
app/views/budgets/_phases.html.erb
Normal file
17
app/views/budgets/_phases.html.erb
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<ul class="no-bullet budget-timeline">
|
||||||
|
<% @budget.phases.published.each do |phase| %>
|
||||||
|
<li class="phase <%= 'active' if phase == @budget.current_phase %>">
|
||||||
|
<h3><%= t("budgets.phase.#{phase.kind}") %></h3>
|
||||||
|
<span>
|
||||||
|
<% if phase.starts_at.to_date.present? %>
|
||||||
|
<%= format_date(phase.starts_at) %>
|
||||||
|
<% end %>
|
||||||
|
-
|
||||||
|
<% if phase.ends_at.to_date.present? %>
|
||||||
|
<%= format_date(phase.ends_at) %>
|
||||||
|
<% end %>
|
||||||
|
</span>
|
||||||
|
<p><%= phase.summary %></p>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
@@ -10,7 +10,9 @@
|
|||||||
<h1><%= @budget.name %></h1>
|
<h1><%= @budget.name %></h1>
|
||||||
|
|
||||||
<%= safe_html_with_links(@budget.description) %>
|
<%= safe_html_with_links(@budget.description) %>
|
||||||
<%= link_to t("budgets.index.section_header.help"), "#section_help" %>
|
<p>
|
||||||
|
<%= link_to t("budgets.index.section_header.help"), "#section_help" %>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="small-12 medium-3 column info padding" data-equalizer-watch>
|
<div class="small-12 medium-3 column info padding" data-equalizer-watch>
|
||||||
<p>
|
<p>
|
||||||
@@ -94,10 +96,7 @@
|
|||||||
|
|
||||||
<div id="all_phases">
|
<div id="all_phases">
|
||||||
<h2><%= t("budgets.index.all_phases") %></h2>
|
<h2><%= t("budgets.index.all_phases") %></h2>
|
||||||
<!--
|
<%= render "phases" %>
|
||||||
Pending to include here the list of phases from
|
|
||||||
https://github.com/consul/consul/issues/2289
|
|
||||||
-->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user