Move diff logic out of helper

This commit is contained in:
BrokenEagle
2020-01-07 00:18:50 +00:00
parent 8531636330
commit 4ab90e5d6e
3 changed files with 68 additions and 54 deletions

View File

@@ -7,7 +7,10 @@
<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>
<div>
<%= wiki_page_diff(@thispage, @otherpage) %>
<%= wiki_other_names_diff(@thispage, @otherpage) %>
</div>
<div>
<%= wiki_body_diff(@thispage, @otherpage) %>
</div>
<% else %>
<p>The artist requested removal of this page.</p>