d5a65e6ac8
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.
24 lines
766 B
Text
24 lines
766 B
Text
<%- @title = "Recently Revised" -%>
|
|
|
|
<%= categories_menu %>
|
|
|
|
<%- @pages_by_day.keys.sort.reverse.each do |day| -%>
|
|
<h3><%= format_date(day, include_time = false) %></h3>
|
|
<ul>
|
|
<%- 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) %>
|
|
<%= "from #{page.author.ip}" if page.author.respond_to?(:ip) %>
|
|
</div>
|
|
</li>
|
|
<%- end -%>
|
|
</ul>
|
|
<%- end -%>
|