diff --git a/app/views/decidim/blogs/posts/show.html.erb b/app/views/decidim/blogs/posts/show.html.erb index 1d5831dc8..804fe15ba 100644 --- a/app/views/decidim/blogs/posts/show.html.erb +++ b/app/views/decidim/blogs/posts/show.html.erb @@ -20,48 +20,38 @@ ) %> -
-
- <%= link_to :posts, class: "small hollow" do %> - <%= icon "chevron-left", class: "icon--small", role: "img", "aria-hidden": true %> - <%= t(".back") %> - <% end %> -
-

<%= translated_attribute post.title %>

+<%= append_javascript_pack_tag "decidim_blogs" %> +<%= append_stylesheet_pack_tag "decidim_blogs" %> + +<%= render layout: "layouts/decidim/shared/layout_center", locals: { columns: 8 } do %> + +
+
+

<%= translated_attribute post.title %>

+
- <% post_presenter = Decidim::Blogs::PostPresenter.new(post) %> - <%= cell "decidim/author", post_presenter.author, from: post %> -
-
- <% if show_endorsements_card? %> -
-
-
-
- <% if endorsements_enabled? %> -
- <%= endorsement_buttons_cell(post) %> -
- <% end %> -
"> - <%= link_to "#comments", class: "button small compact hollow button--nomargin expanded" do %> - <%= icon "comment-square", class: "icon--small", aria_label: t(".comments"), role: "img" %> <%= post.comments_count %> - <% end %> -
-
-
- <%= follow_button_for(post) %> -
-
+ <% if post.photo.present? %> +
+ <%= image_tag post.photo.big_url, alt: post.photo.description || post.photo.title || t("alt", scope: "decidim.application.photo") %>
- <% end %> -
"> -
- <%= decidim_sanitize_editor_admin translated_attribute(post.body) %> + <% end %> + +
+ <%= cell "decidim/author", post_presenter.author, from: post, context_actions: [:date], layout: :compact %>
- <%= cell "decidim/endorsers_list", post %> -
-
-<%= attachments_for post %> -<%= comments_for post %> -<%= cell("decidim/flag_modal", post) %> + + +
+
+ <%= decidim_sanitize_editor_admin translated_attribute post.body %> +
+ + <%= attachments_for post %> + + <%= render partial: "actions" %> +
+ +
+ <%= comments_for post %> +
+<% end %>