postshow.rhtml

teensyweb/app/views/forum/postshow.rhtml · 570 B

From the archive teensyweb.tar.gz

Download the archive   « Back to the archive contents

<div class="app">
  <div class="forum">
    <%= "Subject: #{@post.topic.subject}" %><br/>
    <%= "Author: #{@post.user.login}" %><br/>
    <%= "Posted: #{ftime @post.created_at}" %><br />
    <hr />
    <%= format_post @post.data %>
    <br /><hr />
    <%= link_to 'reply', {:action => 'postreply', :id => @post.id} %>
    <% if owner?(@post.user_id) %>
      <%= link_to 'edit', {:action => 'postedit', :id => @post.id} %>
    <% end %>  
    <% if admin? %>
      <%= link_to 'delete', {:action => 'postdelete', :id => @post.id} %>
    <% end %>  
  </div>  
</div>

Site Stats

Snippets: 1791
Codebases: 571