Sha256: 64ec66ef564ef82f24b4e10827b8a3c2954425c6d663eaa5502a75dabdbd868b

Contents?: true

Size: 759 Bytes

Versions: 3

Compression:

Stored size: 759 Bytes

Contents

<div id="<%= element_id %>" class="progress-bar__container <%= options[:class] %>" data-progress-bar>
  <div class="progress-bar__number">
    <span><%= progress %></span>
    <%= content_tag :span, total if total != 0 %>
  </div>

  <%= content_tag :div, units_name_text, class: "progress-bar__units" if units_name %>

  <% if total != 0 %>
    <div class="progress-bar" role="progressbar" aria-label="<%= units_name.present? ? units_name_text : t("decidim.shared.progress") %>" aria-valuenow="<%= number_with_precision(percentage, separator: ".", precision: 2) %>" aria-valuemin="0" aria-valuemax="100" aria-valuetext="<%= number_to_percentage(percentage, precision: 2) %>">
      <div style="width: <%= percentage %>%"></div>
    </div>
  <% end %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-core-0.28.4 app/cells/decidim/progress_bar/show.erb
decidim-core-0.28.3 app/cells/decidim/progress_bar/show.erb
decidim-core-0.28.2 app/cells/decidim/progress_bar/show.erb