summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-10-23 18:45:14 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-10-23 18:45:14 +0000
commit6cccdce06eff37c51b0802ad2b85a71497084523 (patch)
tree45ff4588eca7da9fbc1f3de364eafa1ff128b672 /app/helpers
parent9e7f71080f9230656e8a6981d14576f4b3d40a79 (diff)
downloadredmine-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/helpers')
-rw-r--r--app/helpers/application_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index e3126a358..048b7ae6f 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -147,6 +147,10 @@ module ApplicationHelper
end
end
+ def wiki_page_path(page, options={})
+ url_for({:controller => 'wiki', :action => 'show', :project_id => page.project, :id => page.title}.merge(options))
+ end
+
def thumbnail_tag(attachment)
link_to image_tag(url_for(:controller => 'attachments', :action => 'thumbnail', :id => attachment)),
{:controller => 'attachments', :action => 'show', :id => attachment, :filename => attachment.filename},