2005-01-24 19:52:04 +01:00
|
|
|
<% @title = "Recently Revised" %>
|
|
|
|
|
2005-04-07 05:24:02 +02:00
|
|
|
<%= categories_menu %>
|
2005-01-24 19:52:04 +01:00
|
|
|
|
|
|
|
<% unless @pages_by_revision.empty? %>
|
2005-08-15 01:27:55 +02:00
|
|
|
<% revision_date = @pages_by_revision.first.revised_at %>
|
2005-01-24 19:52:04 +01:00
|
|
|
<h3><%= revision_date.strftime('%B %e, %Y') %></h3>
|
|
|
|
<ul>
|
|
|
|
<% for page in @pages_by_revision %>
|
2005-08-15 01:27:55 +02:00
|
|
|
<% if page.revised_at < revision_date %>
|
|
|
|
<% revision_date = page.revised_at %>
|
2005-01-24 19:52:04 +01:00
|
|
|
</ul>
|
|
|
|
<h3><%= revision_date.strftime('%B %e, %Y') %></h3>
|
|
|
|
<ul>
|
|
|
|
<% end %>
|
|
|
|
<li>
|
2005-04-03 08:34:15 +02:00
|
|
|
<%= link_to_existing_page page %>
|
2005-01-24 19:52:04 +01:00
|
|
|
<div class="byline" style="margin-bottom: 0px">
|
2005-04-03 08:34:15 +02:00
|
|
|
by <%= link_to_page(page.author) %>
|
2005-08-15 01:35:10 +02:00
|
|
|
at <%= format_date(page.revised_at) %>
|
2005-01-24 19:52:04 +01:00
|
|
|
<%= "from #{page.author.ip}" if page.author.respond_to?(:ip) %>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
2005-04-03 08:34:15 +02:00
|
|
|
|