<%= t(".title") %> <%= link_to t("actions.new", scope: "decidim.blogs", name: t("models.post.name", scope: "decidim.blogs.admin")), new_post_path, class: "button tiny button--title" if allowed_to? :create, :blogpost %>

<% posts.created_at_desc.each do |post| %> <% end %>
<%= t("models.post.fields.title", scope: "decidim.blogs") %> <%= t("models.post.fields.body", scope: "decidim.blogs") %> <%= t("models.post.fields.author", scope: "decidim.blogs") %> <%= t("models.post.fields.created_at", scope: "decidim.blogs") %> <%= t("actions.title", scope: "decidim.blogs") %>
<%= translated_attribute(post.title) %>
<%= sanitize post_description_admin(post) %> <%= post.try(:author).try(:name) %> <%= l post.created_at, format: "%d/%m/%Y - %H:%M" %> <% if allowed_to? :update, :blogpost, blog_post: post %> <%= icon_link_to "pencil", edit_post_path(post), t("actions.edit", scope: "decidim.blogs"), class: "action-icon--edit" %> <% end %> <% if allowed_to? :destroy, :blogpost, blog_post: post %> <%= icon_link_to "circle-x", post_path(post), t("actions.destroy", scope: "decidim.blogs"), method: :delete, class: "action-icon--remove", data: { confirm: t("actions.confirm_destroy", scope: "decidim.blogs") } %> <% end %>
<%= paginate posts, theme: "decidim" %>