% 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.published_at", scope: "decidim.blogs") %> | <%= t("actions.title", scope: "decidim.blogs") %> |
---|---|---|---|---|
<% if allowed_to? :update, :blogpost, blog_post: post %>
<%= link_to translated_attribute(post.title), edit_post_path(post) %> <% else %> <%= translated_attribute(post.title) %> <% end %> |
<%= decidim_sanitize_editor post_description_admin(post) %> | <%= translated_attribute(post.try(:author).try(:name)) %> | <% publish_data = publish_data(post.published_at) %><%= content_tag :span, class: "padding-3", data: { tooltip: true, disable_hover: false, click_open: false }, title: publish_data[:popup] do publish_data[:icon] end %> <%= l post.published_at, format: :decidim_short %> | <% if allowed_to? :update, :blogpost, blog_post: post %> <%= icon_link_to "pencil-line", 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-line", 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 "attachment-line", post_attachments_path(post), t("actions.attachments", scope: "decidim.meetings"), class: "action-icon--attachments" %> <% end %> <%= icon_link_to "eye-line", resource_locator(post).path, t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview", target: :blank, data: { "external-link": false } %> <%= resource_permissions_link(post) %> <% if allowed_to? :destroy, :blogpost, blog_post: post %> <%= icon_link_to "delete-bin-line", 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 %> |