# HG changeset patch # User Chris Cannam # Date 1310467902 -3600 # Node ID cd64fb9ab7010563f2c2f1e2a1a6f5a05ce14434 # Parent 1c1ee0b2a1074e1026e89cfeb1d3be35be0bcc1c Add "Edit this page" link to welcome page if the current user is authorised to do so diff -r 1c1ee0b2a107 -r cd64fb9ab701 app/views/projects/show.rhtml --- a/app/views/projects/show.rhtml Mon Jul 11 16:50:45 2011 +0100 +++ b/app/views/projects/show.rhtml Tue Jul 12 11:51:42 2011 +0100 @@ -10,6 +10,14 @@ <% if page %> +<% if @project.module_enabled? :wiki %> +<% if User.current.allowed_to?(:edit_wiki_pages, @project) %> +
+<%= link_to(l(:button_welcome_page_edit_this), {:controller => 'wiki', :action => 'edit', :project_id => @project, :id => Wiki.titleize("Overview")}, :class => 'icon icon-edit') %> +
+<% end %> +<% end %> +