Sha256: c1d40c9ed14b6a5bdbbee0d73368f7a0b60e492fa3c091cabb119594b663eb44

Contents?: true

Size: 1.29 KB

Versions: 10

Compression:

Stored size: 1.29 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"><%= present(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>
      <% if !current_settings.try(:votes_hidden?) && !proposal.component.current_settings.votes_hidden? %>
        <div class="card--list__data">
          <span class="card--list__data__number">
            <%= proposal.votes.size %>
          </span> <%= t(".proposal_votes", count: proposal.votes.size) %>
        </div>
      <% end %>
    </div>
  <% end %>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
decidim-proposals-0.16.1 app/views/decidim/proposals/proposals/_linked_proposals.html.erb
decidim-proposals-0.17.0 app/views/decidim/proposals/proposals/_linked_proposals.html.erb
decidim-proposals-0.16.0 app/views/decidim/proposals/proposals/_linked_proposals.html.erb
decidim-proposals-0.15.2 app/views/decidim/proposals/proposals/_linked_proposals.html.erb
decidim-proposals-0.15.1 app/views/decidim/proposals/proposals/_linked_proposals.html.erb
decidim-proposals-0.15.0 app/views/decidim/proposals/proposals/_linked_proposals.html.erb
decidim-proposals-0.14.4 app/views/decidim/proposals/proposals/_linked_proposals.html.erb
decidim-proposals-0.14.3 app/views/decidim/proposals/proposals/_linked_proposals.html.erb
decidim-proposals-0.14.2 app/views/decidim/proposals/proposals/_linked_proposals.html.erb
decidim-proposals-0.14.1 app/views/decidim/proposals/proposals/_linked_proposals.html.erb