Sha256: 1f52dcab9cb1efcc7a017a47ecab4b6f7f3afe1711f38d5a7439377b956b36a8

Contents?: true

Size: 908 Bytes

Versions: 5

Compression:

Stored size: 908 Bytes

Contents

<% provide(:title, translated_attribute(post.title)) %>

<% add_decidim_meta_tags({
  title: translated_attribute(post.title),
  description: translated_attribute(post.body),
  url: post_url(post.id)
}) %>

<%
  edit_link(
    resource_locator(post).edit,
    :update,
    :blogpost,
    blogpost: post
  )
%>
<div class="row">
  <div class="columns medium-7 mediumlarge-8">
    <div class="row column view-header">
      <h2 class="heading2"><%= translated_attribute post.title %></h2>
      <%= cell "decidim/author", present(post.author), from: post %>
    </div>
    <div class="section">
      <p><%= decidim_sanitize translated_attribute post.body %></p>
    </div>
  </div>
  <div id="most-commented" class="columns medium-5 mediumlarge-4 large-4">
    <%= render partial: "sidebar_blog", locals: { posts: posts_most_commented } %>
  </div>
</div>
<%= attachments_for post %>
<%= comments_for post %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-blogs-0.21.0 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.20.1 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.20.0 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.19.1 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.19.0 app/views/decidim/blogs/posts/show.html.erb