% add_decidim_page_title(t(".title")) %>
<%= 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) %> |
<%= decidim_sanitize_editor 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? :update, :blogpost, blog_post: post %> <%= icon_link_to "folder", post_attachment_collections_path(post), t("actions.attachment_collections", scope: "decidim.meetings"), class: "action-icon--attachment_collections" %> <% end %> <% if allowed_to? :update, :blogpost, blog_post: post %> <%= icon_link_to "paperclip", post_attachments_path(post), t("actions.attachments", scope: "decidim.meetings"), class: "action-icon--attachments" %> <% end %> <%= resource_permissions_link(post) %> <% 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 %> |