Sha256: 8c0b073085e53982f624b8bb88ba010bd26fba50901b872dfbe466723f1540ff

Contents?: true

Size: 1.01 KB

Versions: 6

Compression:

Stored size: 1.01 KB

Contents

<div class="card card--action">
  <% resources.each do |sortition| %>
    <div class="card--list__item">
      <div class="card--list__text">
        <%= link_to resource_locator(sortition).path do %>
          <%= icon "proposals", class: "card--list__icon", remove_icon_class: true %>
        <% end %>
        <div>
          <%= link_to resource_locator(sortition).path, class: "card__link" do %>
            <h5 class="card--list__heading"><%= decidim_escape_translated(sortition.title) %></h5>
          <% end %>
          <div class="author">
            <span class="author__avatar">
              <%= image_tag present(sortition.author).avatar_url %>
            </span>
            <span class="author__name">
              <%= sortition.author.name %>
            </span>
          </div>
        </div>
      </div>
      <div>
        <span>
          <%= sortition.selected_proposals.size %>
        </span> <%= t(".selected_proposals", count: proposal.selected_proposals.size) %>
      </div>
    </div>
  <% end %>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-sortitions-0.29.1 app/views/decidim/sortitions/sortitions/_linked_sortitions.html.erb
decidim-sortitions-0.29.0 app/views/decidim/sortitions/sortitions/_linked_sortitions.html.erb
decidim-sortitions-0.29.0.rc4 app/views/decidim/sortitions/sortitions/_linked_sortitions.html.erb
decidim-sortitions-0.29.0.rc3 app/views/decidim/sortitions/sortitions/_linked_sortitions.html.erb
decidim-sortitions-0.29.0.rc2 app/views/decidim/sortitions/sortitions/_linked_sortitions.html.erb
decidim-sortitions-0.29.0.rc1 app/views/decidim/sortitions/sortitions/_linked_sortitions.html.erb