Sha256: 2c4690abe15bedab7171e2a17e51545f2e9b20b2efd7f7ee8dce3abfe983daa3

Contents?: true

Size: 1.95 KB

Versions: 18

Compression:

Stored size: 1.95 KB

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 column view-header">
  <div class="m-bottom">
    <%= link_to :posts, class: "small hollow" do %>
      <%= icon "chevron-left", class: "icon--small", role: "img", "aria-hidden": true %>
      <%= t(".back") %>
    <% end %>
  </div>
  <h2 class="heading2"><%= translated_attribute post.title %></h2>
  <%= cell "decidim/author", present(post.author), from: post %>
</div>
<div class="row">
  <% if show_endorsements_card? %>
      <div class="columns section view-side mediumlarge-4 mediumlarge-push-8 large-3 large-push-9">
        <div class="card">
          <div class="card__content">
            <div class="row collapse buttons__row">
              <% if endorsements_enabled? %>
                <div class="column small-9 collapse">
                  <%= endorsement_buttons_cell(post) %>
                </div>
              <% end %>
              <div class="column collapse <%= endorsements_enabled? ? "small-3" : "" %>">
                <%= 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 %>
              </div>
            </div>
            <br>
            <%= follow_button_for(post) %>
          </div>
        </div>
      </div>
  <% end %>
  <div class="columns mediumlarge-8 <%= "mediumlarge-pull-4" if show_endorsements_card? %>">
    <div class="section">
      <%= decidim_sanitize translated_attribute post.body %>
    </div>
    <%= cell "decidim/endorsers_list", post %>
  </div>
</div>
<%= attachments_for post %>
<%= comments_for post %>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
decidim-blogs-0.25.2 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.25.1 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.25.0 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.25.0.rc4 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.25.0.rc3 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.25.0.rc2 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.25.0.rc1 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.24.3 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.23.6 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.24.2 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.23.5 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.24.1 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.24.0 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.24.0.rc2 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.23.4 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.24.0.rc1 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.23.3 app/views/decidim/blogs/posts/show.html.erb
decidim-blogs-0.23.2 app/views/decidim/blogs/posts/show.html.erb