ensl.org/app/views/articles/_article.html.erb
Luke Barratt 12ed7c90ae Start to cleanup old assets
Added new ISO country code flag icons to asset pipeline
Lots and lots of new style changes
Began converting to JS to coffeescript
2014-04-09 00:28:53 +01:00

26 lines
789 B
Text

<div class="article wide">
<h1><%= namelink article %></h1>
<div class="clear content">
<% if article.text_coding == Article::CODING_HTML %>
<%= article.text.html_safe %>
<% else %>
<%= article.text_parsed.html_safe %>
<% end %>
</div>
<h4 class="author">
<%= namelink article.user %> on <%= longtime article.created_at %>
</h4>
<div class="actions">
<% if article.can_update? cuser %>
<%= link_to 'Edit', edit_article_path(article) %> |
<% end %>
<% if article.can_destroy? cuser %>
<%= link_to 'Destroy', article, confirm: 'Are you sure?', method: :delete %> |
<% end %>
<%= link_to "History", article_versions_path(article) %> |
<%= link_to "Comments: #{article.comments.count}", article %>
</div>
</div>