diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-05 14:45:44 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-05 14:45:44 +0000 |
commit | f3a1b4e38c25fd34ef19d9b04567d327c34f6713 (patch) | |
tree | 32509daacaca872a21ccbbc806caee2fb2cde6f3 /app/views/wiki/show.rhtml | |
parent | 7eb4abae80d7bd0b3b95c67b09f7b58b0b3ed031 (diff) | |
download | redmine-f3a1b4e38c25fd34ef19d9b04567d327c34f6713.tar.gz redmine-f3a1b4e38c25fd34ef19d9b04567d327c34f6713.zip |
Added the ability to easily rollback to a previous version of a wiki page.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@424 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/wiki/show.rhtml')
-rw-r--r-- | app/views/wiki/show.rhtml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/wiki/show.rhtml b/app/views/wiki/show.rhtml index 2e8ee4089..e4e1bc38d 100644 --- a/app/views/wiki/show.rhtml +++ b/app/views/wiki/show.rhtml @@ -1,5 +1,6 @@ <div class="contextual"> <%= link_to(l(:button_edit), {:action => 'edit', :page => @page.title}, :class => 'icon icon-edit') if @content.version == @page.content.version %> +<%= link_to(l(:button_rollback), {:action => 'edit', :page => @page.title, :version => @content.version }, :class => 'icon icon-cancel') if @content.version < @page.content.version %> <%= link_to(l(:label_history), {:action => 'history', :page => @page.title}, :class => 'icon icon-history') %> <%= link_to(l(:label_page_index), {:action => 'special', :page => 'Page_index'}, :class => 'icon icon-index') %> </div> |