Sha256: d2d33ea12df451283a5be5a639d12f1580c397e60a91f14cc3b927821c6bacd1

Contents?: true

Size: 1.04 KB

Versions: 3

Compression:

Stored size: 1.04 KB

Contents

<!--
  @Name: blog/posts/_post.html.erb
  @Use:  This is a page for displaying posts records
  @Created date: 26-06-2012
  @Modified Date: 26-06-2012
  @Company:  Mindfire Solutions
-->

<div id="blog_post" class="entry">
    <h3 class="entry-header"><%= @blog_post.title %></h3>
    <section class='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><%= "#{t('blog.posts.show.by')} #{@blog_post.author.full_name}" 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 %>
    </section>
  <%= @blog_post.body.html_safe %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mcms_blog-1.0.0 app/views/blog/posts/_post.html.erb
mcms_blog-0.0.4 app/views/blog/posts/_post.html.erb
mcms_blog-0.0.3 app/views/blog/posts/_post.html.erb