Sha256: cdbe9c564d8c7f68415c2695944147de596a432d023ca1b4863b6af70c63e049

Contents?: true

Size: 948 Bytes

Versions: 3

Compression:

Stored size: 948 Bytes

Contents

<% if post.live? %>
  <article class="blog_post" id="<%= dom_id(post) %>">
    <header>
      <h1><%= link_to post.title, blog_post_url(post) %></h1>
      <p class='posted_at'>
        <%= t('blog.shared.posts.created_at', :when => post.published_at.strftime('%d %B %Y')) %>
      </p>
    </header>
    <section class='clearfix'>
      <%= truncate(post.body,
                   :length => RefinerySetting.find_or_set(:blog_post_teaser_length, 250),
                   :preserve_html_tags => true) %>
    </section>
    <footer>
      <p>
        <%= link_to t('blog.shared.posts.read_more'), blog_post_url(post) %>

        <span class='comment_count'>
          <% if post.comments.any? %>
             (<%= pluralize(post.comments.approved.count, t('blog.shared.comments.singular')) %>)
          <% else %>
            (<%= t('blog.shared.comments.none') %>)
          <% end %>
        </span>
      </p>
    </footer>
  </article>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
refinerycms-blog-1.0.rc16 app/views/blog/shared/_post.html.erb
refinerycms-blog-1.0.rc15 app/views/blog/shared/_post.html.erb
refinerycms-blog-1.0.rc14 app/views/blog/shared/_post.html.erb