Sha256: a68403cb56da7682e2178b92fc494d7695c3cefa75c84e57a74487a82efcf622

Contents?: true

Size: 823 Bytes

Versions: 1

Compression:

Stored size: 823 Bytes

Contents

<% if posts.any? %>
  <div class="section">
    <div class="section-heading">
      <%= t(".most_commented_posts") %>
    </div>
    <% posts.each do |post| %>
      <div class="m-bottom">
        <strong><%= link_to translated_attribute(post.title), post %></strong>
        <div class="author-data author-data--nopadding">
          <%= render partial: "datetime", locals: { post: post } %>&nbsp;&nbsp;ยท&nbsp;&nbsp;
          <%= link_to "#{post_path(post)}#comments", title: t(".comments") do %>
            <%= icon "comment-square", class: "icon--small", aria_label: t(".comments"), role: "img" %>
            <%= post.comments.count %>
            <%= t(".comments") %>
          <% end %>
          <a href="#comments" title="<%= t(".comments") %>"></a>
        </div>
      </div>
    <% end %>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-blogs-0.22.0 app/views/decidim/blogs/posts/_sidebar_blog.html.erb