Sha256: d7defd7fa151a5750654fe4bbb18256c33c91dfb2564d8b9d2dab2b4c1a5765c
Contents?: true
Size: 1.74 KB
Versions: 4
Compression:
Stored size: 1.74 KB
Contents
<% if post.live? %> <article class="blog_post" id="<%= dom_id(post) %>"> <header> <h1><%= link_to post.title, blog_post_url(post) %></h1> <details> <time datetime="<%=l post.published_at.to_date, :format => :default %>" class='posted_at'> <%= t('blog.shared.posts.created_at', :when => l(post.published_at.to_date, :format => :short)) %>. </time><%= " by #{post.author.username}" if post.author.present? %> <% if (categories = post.categories).any? %> <aside class='filed_in'> <%= t('filed_in', :scope => 'blog.posts.show') %> <%=raw categories.collect { |category| link_to category.title, blog_category_url(category) }.to_sentence %> </aside> <% end %> <% if (tags = post.tag_list).any? %> <aside class='tagged'> <%= t('tagged', :scope => 'blog.posts.show') %> <%=raw tags.collect { |tag| link_to tag, tagged_posts_path(tag.parameterize) }.to_sentence %> </aside> <% end %> </details> </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) %> </p> <aside class='comment_count'> <% if BlogPost.comments_allowed? %> <% if post.comments.any? %> (<%= pluralize(post.comments.approved.count, t('blog.shared.comments.singular')) %>) <% else %> (<%= t('blog.shared.comments.none') %>) <% end %> <% end %> </aside> </footer> </article> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems