Sha256: 8d16dd2946ef9c6c71a64591e871d754333fbc122d1ae8cc241ddf8b5392301e

Contents?: true

Size: 823 Bytes

Versions: 46

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

46 entries across 46 versions & 1 rubygems

Version Path
decidim-blogs-0.24.0.rc1 app/views/decidim/blogs/posts/_sidebar_blog.html.erb
decidim-blogs-0.23.3 app/views/decidim/blogs/posts/_sidebar_blog.html.erb
decidim-blogs-0.23.2 app/views/decidim/blogs/posts/_sidebar_blog.html.erb
decidim-blogs-0.23.1 app/views/decidim/blogs/posts/_sidebar_blog.html.erb
decidim-blogs-0.23.1.rc1 app/views/decidim/blogs/posts/_sidebar_blog.html.erb
decidim-blogs-0.23.0 app/views/decidim/blogs/posts/_sidebar_blog.html.erb