Sha256: fd4c5d4344543f9bcddc364610c786b8b8a0c03c4f302249936b02241fa0bbdb
Contents?: true
Size: 939 Bytes
Versions: 9
Compression:
Stored size: 939 Bytes
Contents
<table cellspacing="1" cellpadding="0"> <tr> <th>Post title</th> <th>Posted</th> <th>Comments</th> <th>Trackbacks</th> <th>Edit</th> <th>Delete</th> </tr> <% for article in @articles %> <tr <%= alternate_class %>> <td><%= (article.published?) ? image_tag('checked.gif') : image_tag('x-ed.gif') %> <%= link_to h(article.title), {:action => "show", :id => article.id} %> <%= article_link(image_tag('go'), article) %> </td> <td><%= distance_of_time_in_words_to_now article.published_at %> ago</td> <td><%= link_to pluralize(article.comments.size, 'comment'), :controller => 'comments', :article_id => article, :action => 'list' %></td> <td><%= link_to pluralize(article.trackbacks.size, 'trackback'), :controller => 'trackbacks', :article_id => article, :action => 'list' %></td> <td class="operation"><%= link_to_edit article %></td> <td class="operation"><%= link_to_destroy article %></td> </tr> <% end %> </table>
Version data entries
9 entries across 9 versions & 1 rubygems