Sha256: 9c2fb5609da6889581e840ba7736234985f6b5613a8d9e01fb338b8be4f00aea

Contents?: true

Size: 1.16 KB

Versions: 8

Compression:

Stored size: 1.16 KB

Contents

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
decidim-proposals-0.11.1 app/views/decidim/proposals/proposals/_linked_proposals.html.erb
decidim-proposals-0.11.0.pre1 app/views/decidim/proposals/proposals/_linked_proposals.html.erb
decidim-proposals-0.10.1 app/views/decidim/proposals/proposals/_linked_proposals.html.erb
decidim-proposals-0.10.0 app/views/decidim/proposals/proposals/_linked_proposals.html.erb
decidim-proposals-0.9.3 app/views/decidim/proposals/proposals/_linked_proposals.html.erb
decidim-proposals-0.9.2 app/views/decidim/proposals/proposals/_linked_proposals.html.erb
decidim-proposals-0.9.1 app/views/decidim/proposals/proposals/_linked_proposals.html.erb
decidim-proposals-0.9.0 app/views/decidim/proposals/proposals/_linked_proposals.html.erb