mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-29 05:51:22 +00:00
31 lines
811 B
Text
31 lines
811 B
Text
|
<div class="article wide">
|
||
|
<h1>
|
||
|
<%= namelink article %>
|
||
|
</h1>
|
||
|
|
||
|
<div class="clear content">
|
||
|
<% if article.text_coding == Article::CODING_HTML %>
|
||
|
<%= raw article.text %>
|
||
|
<% else %>
|
||
|
<%= raw article.text_parsed %>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
|
||
|
<h4 class="left">
|
||
|
<%= namelink article.user %> on <%= longtime article.created_at %>
|
||
|
</h4>
|
||
|
|
||
|
<h4 class="right">
|
||
|
<% 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 %>
|
||
|
</h4>
|
||
|
|
||
|
<div class="footer">
|
||
|
</div>
|
||
|
</div>
|