<%= namelink article %>

<% if article.text_coding == Article::CODING_HTML %> <%= article.text.html_safe %> <% else %> <%= article.text_parsed.html_safe %> <% end %>
<%= namelink(article.user) %> on <%= longtime article.created_at %>
<%= link_to article do %> <%= icon 'comments' %> Comments (<%= article.comments.count %>) <% end %>
<% if article.can_update? cuser %> <%= link_to 'Edit', edit_article_path(article), class: 'button tiny' %> <% end %> <% if article.can_destroy? cuser %> <%= link_to 'Destroy', article, confirm: 'Are you sure?', method: :delete, class: 'button tiny' %> <% end %> <%= link_to "History", article_versions_path(article), class: 'button tiny' %>