instiki/app/views/wiki/recently_revised.rhtml

33 lines
879 B
Plaintext
Raw Normal View History

2005-01-16 16:00:11 +01:00
<% @title = "Recently Revised" %>
2005-01-15 21:26:54 +01:00
<% unless @categories.empty? %>
<div id="categories">
<strong>Categories</strong>:
[<a href=".">Any</a>]
<%= @category_links.join(', ') %>
</div>
<% end %>
<% revision_date = Date.new(2100) %>
<ul>
<% for page in @pages_by_revision %>
<% if page.revised_on < revision_date %>
</ul><b>
<%= DateTime.new(page.revised_on.year, page.revised_on.mon,
page.revised_on.day).strftime('%B %e, %Y')
%>
</b><ul>
2005-01-15 21:26:54 +01:00
<% end %>
<li>
<a href="../show/<%= page.name %>"><%= page.plain_name %></a>
<div class="byline" style="margin-bottom: 0px">
by <%= page.author_link %>
at <%= page.created_at.strftime "%H:%M" %>
<%= "from #{page.author.ip}" if page.author.respond_to?(:ip) %>
</div>
</li>
<% revision_date = page.revised_on %>
<% end %>