2008-12-15 20:19:22 +01:00
|
|
|
<%- @title = "Recently Revised" -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
|
|
|
|
<%= categories_menu %>
|
|
|
|
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- @pages_by_day.keys.sort.reverse.each do |day| -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
<h3><%= format_date(day, include_time = false) %></h3>
|
|
|
|
<ul>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- for page in @pages_by_day[day] -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
<li>
|
|
|
|
<%= link_to_existing_page page %>
|
2011-04-25 17:54:44 +02:00
|
|
|
<%- if page.rev_ids.size > 1 %>
|
2009-04-01 06:37:21 +02:00
|
|
|
<span class="views">
|
2011-04-25 17:54:44 +02:00
|
|
|
( <%= link_to_revision(page, page.rev_ids.size, text='diff',
|
2009-04-01 16:20:58 +02:00
|
|
|
mode='diff') %> | <%= link_to_history(page, text='history') %> )
|
2009-04-01 06:37:21 +02:00
|
|
|
</span>
|
2009-03-31 06:50:06 +02:00
|
|
|
<%- end -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
<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>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- end -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
</ul>
|
2008-12-15 20:19:22 +01:00
|
|
|
<%- end -%>
|