Sha256: 60ff5d35d2a62d9774dca134855c46ac2f6b30627c26ac898dfb759237728d7d

Contents?: true

Size: 868 Bytes

Versions: 13

Compression:

Stored size: 868 Bytes

Contents

<% add_decidim_page_title component_name %>
<%= append_javascript_pack_tag "decidim_blogs" %>
<%= append_stylesheet_pack_tag "decidim_blogs" %>

<% content_for :aside do %>
  <h1 class="title-decorator"><%= component_name %></h1>
<% end %>

<%= render layout: "layouts/decidim/shared/layout_two_col" do %>

  <%= render partial: "decidim/shared/component_announcement" %>

  <section id="blogs" class="layout-main__section layout-main__heading">
    <% if posts.empty? %>
      <%= cell("decidim/announcement", t("empty", scope: "decidim.blogs.posts.index")) %>
    <% else %>
      <h2 class="h5 md:h3 decorator"><%= t("count", scope: "decidim.blogs.posts.index", count: posts.length) %></h2>
    <% end %>

    <% paginate_posts.each do |post| %>
      <%= card_for post, size: :l %>
    <% end %>

    <%= decidim_paginate paginate_posts %>
  </section>

<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-blogs-0.29.1 app/views/decidim/blogs/posts/index.html.erb
decidim-blogs-0.28.4 app/views/decidim/blogs/posts/index.html.erb
decidim-blogs-0.29.0 app/views/decidim/blogs/posts/index.html.erb
decidim-blogs-0.28.3 app/views/decidim/blogs/posts/index.html.erb
decidim-blogs-0.29.0.rc4 app/views/decidim/blogs/posts/index.html.erb
decidim-blogs-0.29.0.rc3 app/views/decidim/blogs/posts/index.html.erb
decidim-blogs-0.29.0.rc2 app/views/decidim/blogs/posts/index.html.erb
decidim-blogs-0.29.0.rc1 app/views/decidim/blogs/posts/index.html.erb
decidim-blogs-0.28.2 app/views/decidim/blogs/posts/index.html.erb
decidim-blogs-0.28.1 app/views/decidim/blogs/posts/index.html.erb
decidim-blogs-0.28.0 app/views/decidim/blogs/posts/index.html.erb
decidim-blogs-0.28.0.rc5 app/views/decidim/blogs/posts/index.html.erb
decidim-blogs-0.28.0.rc4 app/views/decidim/blogs/posts/index.html.erb