0
0
Fork 0
mirror of https://github.com/ENSL/ensl.org.git synced 2025-01-27 03:30:54 +00:00
ensl.org/app/views/articles/version.html.erb

13 lines
350 B
Text
Raw Normal View History

<div class="article">
<div class="box">
<% if @version.text_coding == Article::CODING_HTML %>
<%= raw @version.text %>
<% else %>
<%= raw @version.text_parsed %>
<% end %>
</div>
<% if @article.can_update? cuser %>
<%= link_to "Revert", article_version_url(@article, @version), :method => :put %>
<% end %>
</div>