Sha256: cab4904b2457a6b59495a86af70479c84da1f5be2a40621748602930d4c18d7c

Contents?: true

Size: 1.05 KB

Versions: 45

Compression:

Stored size: 1.05 KB

Contents

<div id="<%= element_id %>" class="<%= container_class %>">
  <div class="progress__bar__title">

    <% if horizontal? %>
      <span class="progress__bar__text"><%= subtitle_text %></span>
      <span class="progress__bar__number"><%= progress %></span><%= "/#{total}" if total != 0 %>
    <% else %>
      <span class="progress__bar__number"><%= progress %></span><%= "/#{total}" if total != 0 %>
      <span class="progress__bar__text"><%= units_name_text %></span>
    <% end %>
  </div>
  <% if total != 0 %>
    <div class="progress progress__bar__bar" role="progressbar" tabindex="0" aria-valuenow="<%= percentage %>" aria-valuemin="0" aria-valuetext="<%= percentage %> percent" aria-valuemax="100">
      <div class="progress-meter progress__bar__bar--complete" style="width: <%= percentage %>%"></div>
      <div class="progress__bar__bar--incomplete" style="width:calc(100% - <%= percentage %>%);"></div>
    </div>

    <% if display_subtitle? %>
      <div class="progress__bar__subtitle">
        <%= subtitle_text %>
      </div>
    <% end %>
  <% end %>
</div>

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
decidim-core-0.23.3 app/cells/decidim/progress_bar/show.erb
decidim-core-0.23.2 app/cells/decidim/progress_bar/show.erb
decidim-core-0.23.1 app/cells/decidim/progress_bar/show.erb
decidim-core-0.23.1.rc1 app/cells/decidim/progress_bar/show.erb
decidim-core-0.23.0 app/cells/decidim/progress_bar/show.erb