versions_diff.html.erb
510 Bytes
<% button_bar do %>
<%= button(:back, _('Back to the versions'), {:action => 'article_versions'}) %>
<% end %>
<h1><%= _('Changes on "%s"') % @page.title %></h1>
<p> <%= _('Changes from %s → %s') % [show_time(@v1.updated_at), show_time(@v2.updated_at)] %> </p>
<% temp = Diffy::Diff.new(@v1.body, @v2.body, :context => 1).to_s(:text).blank? %>
<% if temp %>
<i><%= _('These versions are equals!')%></i>
<% else %>
<%= Diffy::Diff.new(@v1.body, @v2.body, :context => 1).to_s(:html) %>
<% end %>