Sha256: e476e7f3f2dc7c805710fc4bdd0a3ab7674ae2ee1875f86172c7f7727c79f191

Contents?: true

Size: 430 Bytes

Versions: 9

Compression:

Stored size: 430 Bytes

Contents

<h2>Recent comments</h2>
<ul class="recent">
<% for comment in Comment.find(:all, :limit => 5, :order => 'id DESC' ) %>
  <li>
    <h4><%= truncate(comment.author, 20) %></h4>
    <div><%= link_to truncate(comment.body, 20), :controller => "comments", :action => "show", :id => comment.id, :article_id => comment.article_id %></div>
    <p class="right"><%= time_ago_in_words(comment.created_at) %> ago</p>
  </li>
<% end %>
</ul>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
typo-3.99.0 app/views/admin/base/_recent_comments.rhtml
typo-3.99.3 app/views/admin/base/_recent_comments.rhtml
typo-3.99.1 app/views/admin/base/_recent_comments.rhtml
typo-3.99.2 app/views/admin/base/_recent_comments.rhtml
typo-4.0.1 app/views/admin/base/_recent_comments.rhtml
typo-4.0.0 app/views/admin/base/_recent_comments.rhtml
typo-4.0.2 app/views/admin/base/_recent_comments.rhtml
typo-3.99.4 app/views/admin/base/_recent_comments.rhtml
typo-4.0.3 app/views/admin/base/_recent_comments.rhtml