postrecent.rhtml

teensyweb/app/views/forum/postrecent.rhtml · 347 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: #{link_to p.topic.subject, {:action => 'postshow', :id => p.id}}" %><br/>
      <%= "Author: #{p.user.login}" %><br/>
      <%= "Posted: #{ftime p.created_at}" %><br />
      <hr />
      <%= format_post p.data.first(80) %>
    </div>  
  <% end %>
</div>


Site Stats

Snippets: 1791
Codebases: 571