Sha256: a4fe7adb2c7ad6afb0af532fbc22918162764701a8e6f5996076e5ce6f11f63b
Contents?: true
Size: 917 Bytes
Versions: 10
Compression:
Stored size: 917 Bytes
Contents
<% if @articles.empty? %> <tr> <td colspan="7"> <%= t('.no_articles') %> </td> </tr> <% end %> <% for article in @articles %> <tr> <td> <% if article.published? %> <%= link_to_permalink(article, article.title, nil, 'published') %> <% else %> <%= link_to(article.title, { controller: '/articles', action: 'preview', id: article.id }, { class: 'unpublished', target: '_new' }) %> <% end %> <%= show_actions article %> </td> <td> <%= author_link(article) %><br /> <small><%= l(article.published_at || article.created_at) %></small> </td> <td> <%= article.allow_comments? ? link_to("#{article.comments.ham.size} <i class='glyphicon glyphicon-comment'></i>".html_safe, controller: '/admin/feedback', id: article.id, action: 'article') : '-' %></td> </tr> <% end %> <%= display_pagination(@articles, 5, 'first', 'last') %>
Version data entries
10 entries across 10 versions & 1 rubygems