From 6cccdce06eff37c51b0802ad2b85a71497084523 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 23 Oct 2012 18:45:14 +0000 Subject: 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 --- app/helpers/application_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/helpers') 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}, -- cgit v1.2.3