Sha256: 8bdefba02dbc576674e1cdda04c08771a39bb03850d7171456f2a41d02eebacd

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

<table cellspacing="1" cellpadding="0">
<tr>
  <th><%= _("Post title")%></th>
  <th><%= _("Posted at")%></th>
  <th><%= _("Comments")%></th>
  <th><%= _("Trackbacks")%></th>
  <th><%= _("Status")%></th>
  <th colspan="3" style="text-align: center;">Action</th>
</tr>
<% for article in @articles %>
<tr <%= alternate_class %>>
  <td> <%= link_to_permalink article, h(article.title) %></td>
  <td><%= article.published_at.strftime("%d/%m/%Y at %H:%M") %></td>
  <td><%= link_to _(pluralize(article.comments.size, 'comment')), :controller => '/admin/comments', :article_id => article, :action => 'list' %></td>
  <td><%= link_to _(pluralize(article.trackbacks.size, 'trackback')), :controller => '/admin/trackbacks', :article_id => article, :action => 'list' %></td>
  <td class="operation"><%= (article.published?) ? image_tag('checked.png', :alt => "online", :title => _("Online")) : image_tag('cancel.png', :alt => "offline", :title => _("Offline")) %></td>
  <td class="operation"><%= link_to image_tag('show.png', :alt => "View article", :title => "Preview article"), {:action => "show", :id => article.id} %></td>
  <td class="operation"><%= link_to_edit article %></td>
  <td class="operation"><%= link_to_destroy article %></td>
</tr>
<% end %>
</table>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
typo-4.1.1 app/views/admin/content/_articles.rhtml