ref: master
app/views/content_viewer/versions_diff.html.erb
<%= button(:back, _('Back to the versions'), {:action => 'article_versions'}) %><%= _('Changes on "%s"').html_safe % @page.title %>
<%= _('Changes from %s → %s').html_safe % [show_time(@v1.updated_at), show_time(@v2.updated_at)] %>
<% diffContent = Diffy::Diff.new(@v1.body, @v2.body, :context => 1) %> <% if diffContent.to_s(:text).blank? %><%= _('These versions range have no differences.')%>
<% else %> <%= diffContent.to_s(:html).html_safe %> <% end %>