History Pages

From Jason Blevins:
  Create a "History" page for each wiki page.
  Link to it, and to the "Diff" page from "Recently Revised".
Also, correct a bug in listing/deleting links to uploaded
video and audio files.
This commit is contained in:
Jacques Distler 2009-03-30 23:50:06 -05:00
parent 7c0874bf4c
commit d5a65e6ac8
6 changed files with 74 additions and 2 deletions

View file

@ -8,6 +8,11 @@
<%- for page in @pages_by_day[day] -%>
<li>
<%= link_to_existing_page page %>
<%- if page.revisions.length > 1 %>
(<%= link_to_revision(page, page.revisions.length, text='diff',
mode='diff') %>)
(<%= link_to_history(page, text='history') %>)
<%- end -%>
<div class="byline" style="margin-bottom: 0px">
by <%= link_to_page(page.author) %>
at <%= format_date(page.revised_at) %>