Sha256: 6e7e0c06d52df0c078a1e83f43c053e855109fc34d87a8106e4c2a594d3ee6e7

Contents?: true

Size: 927 Bytes

Versions: 1

Compression:

Stored size: 927 Bytes

Contents

<div class="article">

  <h1><%= @post.title %></h1>

  <div class="date">
    <%= human_date @post.date %>
  </div>

  <%= @post.body_html %>

  <hr/>

  <div style="margin:1em 0em 1em 0em; color:#666">
    <% if @post.category %>
      Posted in category <%= link_to @post.category, "/categories/#{urlify @post.category}" %> by <%= @blog.author %>.
    <% end %>
    Tagged with <%= @post.tag_list.map {|tag| link_to tag, "/tags/#{urlify tag}" }.join(', ') %>.
  </div>

  <h6>Similar Posts</h6>

  <ul>

  <% for post in @blog.posts_with_tags(@post.tags) %>
     <% if post != @post %>
       <li><%= post_link post %></li>
     <% end %>
  <% end %>

  </ul>

  <hr/>

  <% if @comments %>
    <h2>Comments</h2>

    <div class="comments">
      <%= render '_comments.rhtml', :comments => @comments %>
    </div>
  <% end %>

  <h2>Leave a comment</h2>

  <%= render '_comment_form.rhtml', :post => @post %>

</div>

<hr/>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
georgi-shinmun-0.3.9 example/templates/post.rhtml