Sha256: 9b037fb1ef33ddc4dcbd129b69a2136bf10ac20f31b8687f7c547c9307a95bcc

Contents?: true

Size: 822 Bytes

Versions: 6

Compression:

Stored size: 822 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>

  <div class="proposals__aside-progress">
    <%= 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>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-core-0.29.1 app/cells/decidim/progress_bar/show.erb
decidim-core-0.29.0 app/cells/decidim/progress_bar/show.erb
decidim-core-0.29.0.rc4 app/cells/decidim/progress_bar/show.erb
decidim-core-0.29.0.rc3 app/cells/decidim/progress_bar/show.erb
decidim-core-0.29.0.rc2 app/cells/decidim/progress_bar/show.erb
decidim-core-0.29.0.rc1 app/cells/decidim/progress_bar/show.erb