eBooru/app/views/wiki_page_versions/diff.html.erb
clragon e304030e8a
[WikiPages] Add editing tag category (#920)
Co-authored-by: Donovan Daniels <hewwo@yiff.rocks>
2025-02-26 05:02:53 -08:00

26 lines
977 B
Plaintext

<div id="c-wiki-page-versions">
<div id="a-diff">
<h1>Wiki Page: <%= @thispage.title %></h1>
<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>
<% if @thispage.parent != @otherpage.parent %>
<div class="wiki-redirect-history">
Page redirect changed
from <%= @thispage.parent.blank? ? "none" : link_to(@thispage.parent, show_or_new_wiki_pages_path(title: @thispage.parent)) %>
to <%= @otherpage.parent.blank? ? "none" : link_to(@otherpage.parent, show_or_new_wiki_pages_path(title: @otherpage.parent)) %>.
</div>
<% end %>
<div>
<%= text_diff(@thispage.body, @otherpage.body) %>
</div>
</div>
</div>
<%= render "wiki_pages/secondary_links" %>
<% content_for(:page_title) do %>
Wiki Page Versions Comparison - <%= @thispage.pretty_title %>
<% end %>