add wiki diff

This commit is contained in:
albert
2013-02-23 20:08:20 -05:00
parent 586c9a7258
commit 81c9ba22a7
9 changed files with 125 additions and 29 deletions

View File

@@ -0,0 +1,13 @@
<div id="c-wiki-pages">
<div id="a-diff">
<h1>Wiki Page: <%= @thispage.title %></h1>
<p>Showing differences between <%= compact_time @thispage.created_at %> (<%= link_to @thispage.updater.name, user_path(@thispage.updater) %>) and <%= compact_time @otherpage.created_at %> (<%= link_to @otherpage.updater.name, user_path(@otherpage.updater) %>)</p>
<div>
<%= wiki_page_diff(@thispage, @otherpage) %>
</div>
</div>
</div>
<%= render "wiki_pages/secondary_links" %>