summaryrefslogtreecommitdiffstats
path: root/app/views/wiki/history.rhtml
blob: 78dc70cc5c7846bbd42cea521c98ca1f586d87e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<div class="contextual">
<%= link_to(l(:label_page_index), {:action => 'special', :page => 'Page_index'}, :class => 'icon icon-index') %>
</div>

<h2><%= @page.pretty_title %></h2>

<h3><%= l(:label_history) %></h3>

<table class="list">
<thead><tr>
    <th>#</th>
    <th><%= l(:field_updated_on) %></th>
    <th><%= l(:field_author) %></th>
    <th><%= l(:field_comments) %></th>
</tr></thead>
<tbody>
<% @versions.each do |ver| %>
<tr class="<%= cycle("odd", "even") %>">
    <th align="center"><%= link_to ver.version, :action => 'index', :page => @page.title, :version => ver.version %></th>
    <td align="center"><%= format_time(ver.updated_on) %></td>
    <td><em><%= ver.author ? ver.author.name : "anonyme" %></em></td>
    <td><%=h ver.comments %></td>
</tr>
<% end %>
</tbody>
</table>

<p><%= link_to l(:button_back), :action => 'index', :page => @page.title %></p>