1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-03-11 19:53:07 +00:00

wiki page history now displayed in table

git-svn-id: http://redmine.rubyforge.org/svn/branches/work@293 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-03-04 15:13:48 +00:00
parent 0f419dd028
commit af3891ad42

View File

@ -6,8 +6,23 @@
<h3><%= l(:label_history) %></h3>
<p><% @versions.each do |ver| %>
<%= link_to "#{ver.version}. #{format_time(ver.updated_on)}", :action => 'index', :page => @page.title, :version => ver.version %> <em>(<%= ver.author ? ver.author.name : "anonyme" %>)</em> <%= ver.comment %><br />
<% end %></p>
<table class="list">
<thead><tr>
<th>#</th>
<th><%= l(:field_updated_on) %></th>
<th><%= l(:field_author) %></th>
<th><%= l(:field_comment) %></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.comment %></td>
</tr>
<% end %>
</tbody>
</table>
<p><%= link_to l(:button_back), :action => 'index', :page => @page.title %></p>