From ffc1db8a544da46a112a5f64d9b895a903e16627 Mon Sep 17 00:00:00 2001 From: Tom Kersten Date: Mon, 20 Jun 2011 22:26:41 -0500 Subject: [PATCH] Added hook for additional wiki formats [refs #488] * Allows plugins to add to the list of supported export formats at the bottom of the Wiki#show view template --- app/views/wiki/show.rhtml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/wiki/show.rhtml b/app/views/wiki/show.rhtml index c17dd482..671bd803 100644 --- a/app/views/wiki/show.rhtml +++ b/app/views/wiki/show.rhtml @@ -49,6 +49,7 @@ <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => @project, :show_wiki_edits => 1, :key => User.current.rss_key} %> <%= f.link_to 'HTML', :url => {:id => @page.title, :version => @content.version} %> <%= f.link_to 'TXT', :url => {:id => @page.title, :version => @content.version} %> + <%= call_hook(:view_wiki_show_other_formats, {:link_builder => f, :url_params => {:id => @page.title, :version => @content.version}}) %> <% end if User.current.allowed_to?(:export_wiki_pages, @project) %> <% content_for :header_tags do %>