Sha256: 943568d5050b122a55c7d7dc058b57d76e80cb4c6b545b18ef445a5607eb752a

Contents?: true

Size: 1.21 KB

Versions: 4

Compression:

Stored size: 1.21 KB

Contents

<% flash.each do |key, value| %>
 <div id='flash' class="flash flash_<%= key %>">
   <%= value %>
 </div>
<% end %>
<article id="blog_post">
  <header>
    <h1><%= @blog_post.title %></h1>
    <details>
      <time datetime="<%=l @blog_post.published_at.to_date, :format => :default %>" class='posted_at'>
        <%= t('blog.shared.posts.created_at', :when => l(@blog_post.published_at.to_date, :format => :short)) %>.
      </time><%= " by #{@blog_post.author.username}" if @blog_post.author.present? %>
      <% if (categories = @blog_post.categories).any? %>
        <aside class='filed_in'>
          <%= t('blog.posts.show.filed_in') %>
          <% categories.each_with_index do |category, index| %>
              <%= link_to category.title, blog_category_url(category) -%><%= ',' if index < ((categories.length) - 1) %>
          <% end %>
        </aside>
      <% end %>
    </details>
  </header>
  <%= @blog_post.body.html_safe %>

  <% if BlogPost::ShareThis.enabled? %>
    <span class="st_sharethis" displayText="ShareThis"></span>
  <% end %>
</article>
<%= render :partial => '/shared/draft_page_message' unless @blog_post.nil? or @blog_post.live? -%>
<% if next_or_previous?(@blog_post) -%>
  <%= render 'nav' %>
<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
refinerycms-blog-1.3.2 app/views/blog/posts/_post.html.erb
refinerycms-blog-1.3.1 app/views/blog/posts/_post.html.erb
refinerycms-blog-1.3 app/views/blog/posts/_post.html.erb
refinerycms-blog-1.2 app/views/blog/posts/_post.html.erb