Sha256: b0217ec5a20b1a6c1ed8fa4a72a3e80b47319eefa1f43b3cb9dccdf89673ee55

Contents?: true

Size: 1.33 KB

Versions: 6

Compression:

Stored size: 1.33 KB

Contents

<div class="card card--action card--list">
  <% resources.each do |paragraph| %>
    <div class="card--list__item">
      <div class="card--list__text">
        <%= link_to resource_locator(paragraph).path do %>
          <%= icon "paragraphs", class: "card--list__icon", remove_icon_class: true %>
        <% end %>
        <div>
          <%= link_to resource_locator(paragraph).path, class: "card__link" do %>
            <h5 class="card--list__heading"><%== decidim_html_escape(present(paragraph).title) %></h5>
          <% end %>
          <% present(paragraph) do |paragraph| %>
            <div class="author">
              <span class="author__avatar">
                <%= image_tag paragraph.author.avatar_url %>
              </span>
              <span class="author__name">
                <strong><%= paragraph.author.name %></strong>
                <%= paragraph.author.nickname %>
              </span>
            </div>
          <% end %>
        </div>
      </div>
      <% if !current_settings.try(:votes_hidden?) && !paragraph.component.current_settings.votes_hidden? %>
        <div class="card--list__data">
          <span class="card--list__data__number">
            <%= paragraph.votes.size %>
          </span> <%= t(".paragraph_votes", count: paragraph.votes.size) %>
        </div>
      <% end %>
    </div>
  <% end %>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-enhanced_textwork-1.0.5 app/views/decidim/enhanced_textwork/paragraphs/_linked_paragraphs.html.erb
decidim-enhanced_textwork-1.0.4 app/views/decidim/enhanced_textwork/paragraphs/_linked_paragraphs.html.erb
decidim-enhanced_textwork-1.0.3 app/views/decidim/enhanced_textwork/paragraphs/_linked_paragraphs.html.erb
decidim-enhanced_textwork-1.0.2 app/views/decidim/enhanced_textwork/paragraphs/_linked_paragraphs.html.erb
decidim-enhanced_textwork-1.0.1 app/views/decidim/enhanced_textwork/paragraphs/_linked_paragraphs.html.erb
decidim-enhanced_textwork-1.0.0 app/views/decidim/enhanced_textwork/paragraphs/_linked_paragraphs.html.erb