<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>