summaryrefslogtreecommitdiffstats
path: root/app/views/wiki/history.rhtml
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-03-10 15:09:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-03-10 15:09:49 +0000
commitc514316a2efcf4e8df4bc2f2681548ebffa30adf (patch)
treeb9b7bc9ccbbbad1cce2701430788f4dfbf872610 /app/views/wiki/history.rhtml
parent8b98ceb92c8fba72315d28c3b7664f481547bf24 (diff)
downloadredmine-c514316a2efcf4e8df4bc2f2681548ebffa30adf.tar.gz
redmine-c514316a2efcf4e8df4bc2f2681548ebffa30adf.zip
wiki branch merged into trunk
git-svn-id: http://redmine.rubyforge.org/svn/trunk@323 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/wiki/history.rhtml')
-rw-r--r--app/views/wiki/history.rhtml28
1 files changed, 28 insertions, 0 deletions
diff --git a/app/views/wiki/history.rhtml b/app/views/wiki/history.rhtml
new file mode 100644
index 000000000..e44a08168
--- /dev/null
+++ b/app/views/wiki/history.rhtml
@@ -0,0 +1,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_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> \ No newline at end of file