Sha256: 985ad74ac73bf3213f5260fe136aaefd78fe488ade66cd2b37abca74570742dd

Contents?: true

Size: 1.36 KB

Versions: 4

Compression:

Stored size: 1.36 KB

Contents

<% content_for(:page_title) do -%>
<%= post_title(@post) -%>
<% end -%>
<%= render :partial => 'enki/posts/post', :locals => {:post => @post} %>

<% if comments? -%>
  <ol class="commentlist">
    <% @post.approved_comments.each do |comment| -%>
    <li<%=raw cycle(' class="alt"', '') %> id="comment-<%= comment.id %>">
      <%= render :partial => 'enki/comments/comment', :locals => {:comment => comment} %>
    </li>
    <% end -%>
  </ol>
<% end -%>

<div class="related">Looking for more? Head on over to the <%= link_to("archives", enki.archives_path) %>.</div>

<% if comments? -%>
  <h2>Post a comment</h2>
    <% unless @comment.errors.empty? -%>
    <div class="errors">
      <h3>Comment not added!</h3>
      <ul>
        <% @comment.errors.sort_by(&:first).each do |error| -%>
          <li><%= format_comment_error(error) %></li>
        <% end -%>
      </ul>
    </div>
    <% end -%>
  <%= form_for @comment, :url => post_comments_path(@post, @comment) do |form| -%>
    <div>
      <p><%= form.text_field 'author' %><label for="comment_author"><small>Name or <a href="http://openidexplained.com/">OpenID</a> (required)</small></label></p>
      <p><%= form.text_area 'body' %><br><small>(<a href="http://lesstile.rubyforge.org">lesstile enabled</a> - surround code blocks with ---)</small></p>
      <p><%= submit_tag "Add Comment" %></p>
    </div>
  <% end -%>
<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enki-engine-0.0.5 app/views/enki/posts/show.html.erb
enki-engine-0.0.4 app/views/enki/posts/show.html.erb
enki-engine-0.0.3 app/views/enki/posts/show.html.erb
enki-engine-0.0.2 app/views/enki/posts/show.html.erb