postlist.rhtml

teensyweb/app/views/forum/postlist.rhtml · 607 B

From the archive teensyweb.tar.gz

Download the archive   « Back to the archive contents

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

Site Stats

Snippets: 1791
Codebases: 571