<% page_title "Wiki Comparison: #{@thispage.pretty_title.titleize}" %> <%= render "wiki_pages/secondary_links" %> <%= render "wiki_pages/sidebar" %> <% content_for(:content) do %>

Wiki Page Version Comparison: <%= link_to @thispage.title, wiki_page_versions_path(search: { wiki_page_id: @thispage.wiki_page_id }, type: params[:type], anchor: "wiki-page-version-#{@thispage.id}"), class: "tag-type-#{@thispage.wiki_page.tag&.category.to_i}" %>

<% if params[:type].present? %> <%= render "versions/types" %> <% end %> <% if @otherpage.present? %> <% if @thispage.id != @otherpage.id %>

Showing differences between <%= compact_time @thispage.updated_at %> (<%= link_to_user @thispage.updater %>) and <%= compact_time @otherpage.updated_at %> (<%= link_to_user @otherpage.updater %>)

<% if wiki_version_show_other_names(@thispage, @otherpage) %>

<%= wiki_version_other_names_diff(@thispage, @otherpage) %>

<% else %>

No changes to other names.

<% end %> <% if @thispage.body != @otherpage.body %>
<%= diff_body_html(@thispage, @otherpage, :body) %>
<% else %>

No changes to body.

<% end %> <% else %>

Version is latest!

<% end %> <% else %>

No versions to compare!

<% end %> <% end %>