2009-03-31 06:50:06 +02:00
|
|
|
<%- @title = @page.plain_name + " (history)" -%>
|
|
|
|
<%- @show_footer = true -%>
|
|
|
|
|
|
|
|
<%- @revisions_by_day.keys.sort.reverse.each do |day| -%>
|
|
|
|
<h3><%= format_date(day, include_time = false) %></h3>
|
|
|
|
<ul>
|
|
|
|
<%- for rev in @revisions_by_day[day] -%>
|
|
|
|
<li>
|
|
|
|
<%= link_to_revision(rev.page, @revision_numbers[rev.id],
|
2009-09-04 07:09:39 +02:00
|
|
|
text= (rev.page.revisions.size == @revision_numbers[rev.id] ?
|
2009-03-31 22:54:41 +02:00
|
|
|
"Current" :
|
|
|
|
"Revision #{@revision_numbers[rev.id]}" )
|
|
|
|
) %>
|
2009-03-31 06:50:06 +02:00
|
|
|
<%- if @revision_numbers[rev.id] > 1 -%>
|
2009-04-01 16:20:58 +02:00
|
|
|
<span class="hist_views">
|
2009-03-31 06:50:06 +02:00
|
|
|
(<%= link_to_revision(rev.page, @revision_numbers[rev.id],
|
|
|
|
text="diff", mode='diff') %>)
|
2009-04-01 06:37:21 +02:00
|
|
|
</span>
|
2009-03-31 06:50:06 +02:00
|
|
|
<%- end -%>
|
|
|
|
<div class="byline" style="margin-bottom: 0px">
|
|
|
|
by <%= link_to_page(rev.author) %>
|
|
|
|
at <%= format_date(rev.revised_at) %>
|
|
|
|
<%= "from #{rev.author.ip}" if rev.author.respond_to?(:ip) %>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<%- end -%>
|
|
|
|
</ul>
|
|
|
|
<%- end -%>
|