Files
danbooru/app/views/wiki_page_versions/diff.html.erb
evazion 6a984de3d5 views: refactor page titles.
Refactor `page_title` helper to automatically include site name.
2020-01-25 01:52:18 -06:00

21 lines
684 B
Plaintext

<% page_title "Wiki Comparison: #{@thispage.pretty_title.titleize}" %>
<%= render "wiki_pages/secondary_links" %>
<%= render "wiki_pages/sidebar" %>
<% content_for(:content) do %>
<h1>Wiki Page: <%= @thispage.title %></h1>
<% if @thispage.visible? %>
<p>Showing differences between <%= compact_time @thispage.updated_at %> (<%= link_to_user @thispage.updater %>) and <%= compact_time @otherpage.updated_at %> (<%= link_to_user @otherpage.updater %>)</p>
<%= wiki_other_names_diff(@thispage, @otherpage) %>
<div>
<%= wiki_body_diff(@thispage, @otherpage) %>
</div>
<% else %>
<p>The artist requested removal of this page.</p>
<% end %>
<% end %>