Sha256: 4e31798ccc2681710f1f40516e41fb49e3b676001e165faec26c26bc8424058e

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

<div class="post">
  <h2><%= @post.subject %></h2>
  <ul class="postdata">
    <li>Posted On <%= @post.created_at %></li>
    <li>Trackback URL: <%= url_for :controller => 'ping', :action => 'trackback', :id => @post.id, :only_path => false %></li>
    <% if @post.updated? -%>
    <li>Update On <%= @post.updated_at %></li>
    <% end -%>
  </ul>
  <%= render_body(@post) %>

  <% if @comment -%>
  <b><%= @comment.subject %></b><br />
  Posted On <%= @comment.created_at %> By <%= @comment.posted_by %><br />
  <%= @comment.rendered %>
  <br />
  <% end -%>

  <form id="postreply" action="<%= url_for :controller => 'post', :action => 'reply', :id => @post.id %>" method="post">
    <div style="visibility: hidden;">
      <% if @comment -%>
      <input type="hidden" name="newcomment[comment_id]" value="<%= @comment.id %>" />
      <% end -%>
    </div>

    <p><label for="newcomment_subject">Subject</label><br />
    <%= text_field 'newcomment', 'subject' %></p>
    <p><label for="newcomment_posted_by">Posted By</label><br />
    <%= text_field 'newcomment', 'posted_by' %></p>
    <p><%= text_area 'newcomment', 'body' %></p>
    <p><input type="submit" value="Reply" /></p>
  </form>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
EliteJournal-1.9.401 app/views/post/reply.rhtml
EliteJournal-1.9.403 app/views/post/reply.rhtml