Sha256: 2f3aa6fb5ef97ffc5d62b423998c1ebb62dcf4db56a37c6a617903e14d384321

Contents?: true

Size: 876 Bytes

Versions: 13

Compression:

Stored size: 876 Bytes

Contents

<div class="card-section">
  <div class="row column">
    <span class="component__show-title"><%= t "endorsers", scope: "decidim.proposals.admin.proposals.show" %></span>
    <ul id="proposal-endorsers-list">
      <% presented_endorsers.first(5).each do |presented_endorser| %>
        <li>
          <%= link_to_if(
                presented_endorser.profile_path.present?,
                presented_endorser.name,
                presented_endorser.profile_path,
                target: :blank
              ) %>
        </li>
      <% end %>
      <% if presented_endorsers.count > 5 %>
        <li>
          <%= link_to(
                t("n_more_endorsers", scope: "decidim.proposals.admin.proposals.show", count: presented_endorsers.count - 5),
                resource_locator(proposal).path
              ) %>
        </li>
      <% end %>
    </ul>
  </div>
</div>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-proposals-0.29.1 app/views/decidim/proposals/admin/proposals/_endorsers.html.erb
decidim-proposals-0.28.4 app/views/decidim/proposals/admin/proposals/_endorsers.html.erb
decidim-proposals-0.29.0 app/views/decidim/proposals/admin/proposals/_endorsers.html.erb
decidim-proposals-0.28.3 app/views/decidim/proposals/admin/proposals/_endorsers.html.erb
decidim-proposals-0.29.0.rc4 app/views/decidim/proposals/admin/proposals/_endorsers.html.erb
decidim-proposals-0.29.0.rc3 app/views/decidim/proposals/admin/proposals/_endorsers.html.erb
decidim-proposals-0.29.0.rc2 app/views/decidim/proposals/admin/proposals/_endorsers.html.erb
decidim-proposals-0.29.0.rc1 app/views/decidim/proposals/admin/proposals/_endorsers.html.erb
decidim-proposals-0.28.2 app/views/decidim/proposals/admin/proposals/_endorsers.html.erb
decidim-proposals-0.28.1 app/views/decidim/proposals/admin/proposals/_endorsers.html.erb
decidim-proposals-0.28.0 app/views/decidim/proposals/admin/proposals/_endorsers.html.erb
decidim-proposals-0.28.0.rc5 app/views/decidim/proposals/admin/proposals/_endorsers.html.erb
decidim-proposals-0.28.0.rc4 app/views/decidim/proposals/admin/proposals/_endorsers.html.erb