summaryrefslogtreecommitdiffstats
path: root/app/views/versions
diff options
context:
space:
mode:
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2010-09-18 17:30:22 +0000
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2010-09-18 17:30:22 +0000
commit81a28e9ffa0d4a2279a6a2b19b3fd60f12ccdd31 (patch)
tree1a9349d28dfd689b687fa05c9fbf13d1529612e6 /app/views/versions
parent099761d8fbba3d33cd34c9ef24bcdbe09d84232d (diff)
downloadredmine-81a28e9ffa0d4a2279a6a2b19b3fd60f12ccdd31.tar.gz
redmine-81a28e9ffa0d4a2279a6a2b19b3fd60f12ccdd31.zip
Adds a link to edit the associated wiki page on the version view. #4416
Contributed by Felix Schäfer git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4101 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/versions')
-rw-r--r--app/views/versions/show.rhtml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/versions/show.rhtml b/app/views/versions/show.rhtml
index 79de5984b..6b2b09d0f 100644
--- a/app/views/versions/show.rhtml
+++ b/app/views/versions/show.rhtml
@@ -1,5 +1,6 @@
<div class="contextual">
<%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => @version}, :class => 'icon icon-edit' %>
+<%= link_to_if_authorized(l(:button_edit_associated_wikipage, :page_title => @version.wiki_page_title), {:controller => 'wiki', :action => 'edit', :page => Wiki.titleize(@version.wiki_page_title)}, :class => 'icon icon-edit') unless @version.wiki_page_title.blank? || @project.wiki.nil? %>
<%= call_hook(:view_versions_show_contextual, { :version => @version, :project => @project }) %>
</div>