Sha256: 3060e8761f7475c9cb91b2da14fa5523e4d7ac88c9f0b8f928cb03ea42448a22

Contents?: true

Size: 773 Bytes

Versions: 13

Compression:

Stored size: 773 Bytes

Contents

<div class="author__coauthors" data-component="accordion">
  <% visible_authors.each do |author| %>
    <%= cell "decidim/author", author, layout: :compact %>
  <% end %>

  <% if model.length > MAX_ITEMS_STACKED %>
    <div id="panel-coauthors" class="author__coauthors" aria-hidden="true">
      <% (model - visible_authors).each do |author| %>
        <%= cell "decidim/author", author, layout: :compact %>
      <% end %>
    </div>

    <button id="coauthors-trigger" data-controls="panel-coauthors" class="button button__sm button__text-secondary">
      <span><%= t("decidim.collapsible_list.hidden_elements_count", count: model.length - MAX_ITEMS_STACKED ) %></span>
      <span><%= t("decidim.collapsible_list.see_less") %></span>
    </button>
  <% end %>
</div>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-core-0.29.1 app/cells/decidim/collapsible_authors/show.erb
decidim-core-0.28.4 app/cells/decidim/collapsible_authors/show.erb
decidim-core-0.29.0 app/cells/decidim/collapsible_authors/show.erb
decidim-core-0.28.3 app/cells/decidim/collapsible_authors/show.erb
decidim-core-0.29.0.rc4 app/cells/decidim/collapsible_authors/show.erb
decidim-core-0.29.0.rc3 app/cells/decidim/collapsible_authors/show.erb
decidim-core-0.29.0.rc2 app/cells/decidim/collapsible_authors/show.erb
decidim-core-0.29.0.rc1 app/cells/decidim/collapsible_authors/show.erb
decidim-core-0.28.2 app/cells/decidim/collapsible_authors/show.erb
decidim-core-0.28.1 app/cells/decidim/collapsible_authors/show.erb
decidim-core-0.28.0 app/cells/decidim/collapsible_authors/show.erb
decidim-core-0.28.0.rc5 app/cells/decidim/collapsible_authors/show.erb
decidim-core-0.28.0.rc4 app/cells/decidim/collapsible_authors/show.erb