|
<%= progress_bar.id %>
|
<%= ProgressBar.human_attribute_name("kind.#{progress_bar.kind}") %> |
<% if progress_bar.title.present? %>
<%= progress_bar.title %>
<% else %>
<%= t("admin.progress_bars.index.primary") %>
<% end %>
|
<%= number_to_percentage(progress_bar.percentage, strip_insignificant_zeros: true) %>
|
<%= link_to t("admin.actions.edit"),
polymorphic_path([:admin, *resource_hierarchy_for(progress_bar)],
action: :edit),
class: "button hollow" %>
<%= link_to t("admin.actions.delete"),
polymorphic_path([:admin, *resource_hierarchy_for(progress_bar)]),
method: :delete,
class: "button hollow alert" %>
|
<% end %>