Articles

<% @categories.each do |category| %>

<%= category.name %>

<% category.articles.nodrafts.ordered.each do |article| %>
<% if cuser and !article.read_by? cuser %> NEW <% end %> <%= namelink article %>
(<%= namelink article.user %> on <%= longdate article.created_at %>)

<% end %> <% end %> <% if Article.new.can_create? cuser %> <%= link_to 'New Article', new_article_path, class: 'button' %> <% end %>