diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-23 18:45:14 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-23 18:45:14 +0000 |
commit | 6cccdce06eff37c51b0802ad2b85a71497084523 (patch) | |
tree | 45ff4588eca7da9fbc1f3de364eafa1ff128b672 /app/views/wiki | |
parent | 9e7f71080f9230656e8a6981d14576f4b3d40a79 (diff) | |
download | redmine-6cccdce06eff37c51b0802ad2b85a71497084523.tar.gz redmine-6cccdce06eff37c51b0802ad2b85a71497084523.zip |
Ability to delete a version from a wiki page history (#10852).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10705 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/wiki')
-rw-r--r-- | app/views/wiki/history.html.erb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/wiki/history.html.erb b/app/views/wiki/history.html.erb index 005219e04..b03af266a 100644 --- a/app/views/wiki/history.html.erb +++ b/app/views/wiki/history.html.erb @@ -28,7 +28,10 @@ <td class="updated_on"><%= format_time(ver.updated_on) %></td> <td class="author"><%= link_to_user ver.author %></td> <td class="comments"><%=h ver.comments %></td> - <td class="buttons"><%= link_to l(:button_annotate), :action => 'annotate', :id => @page.title, :version => ver.version %></td> + <td class="buttons"> + <%= link_to l(:button_annotate), :action => 'annotate', :id => @page.title, :version => ver.version %> + <%= delete_link wiki_page_path(@page, :version => ver.version) if User.current.allowed_to?(:delete_wiki_pages, @page.project) && @version_count > 1 %> + </td> </tr> <% line_num += 1 %> <% end %> |