Extract milestones progress bars to a partial

This commit is contained in:
Javi Martín
2019-01-10 21:45:22 +01:00
committed by decabeza
parent b552f6e70b
commit 84fc254e92
2 changed files with 19 additions and 18 deletions

View File

@@ -0,0 +1,18 @@
<% if milestoneable.primary_progress_bar %>
<section class="progress-bars">
<h5><%= t("milestones.index.progress") %></h5>
<%= progress_tag_for(milestoneable.primary_progress_bar) %>
<% if milestoneable.secondary_progress_bars.any? %>
<ul class="milestone-progress">
<% milestoneable.secondary_progress_bars.each do |progress_bar| %>
<li>
<%= progress_bar.title %>
<%= progress_tag_for(progress_bar) %>
</li>
<% end %>
</ul>
<% end %>
</section>
<% end %>