<% articles.each do |article| %> <% end %>
Title Date Author
<%= namelink article, 35 %> <%= shortdate article.created_at %> <%= namelink article.user %> <% if article.can_update? cuser %> <%= link_to icon('pencil'), edit_article_path(article) %> <% end; if article.can_destroy? cuser %> <%= link_to icon('times'), article, confirm: 'Are you sure?', method: :delete %> <% end %>