# HG changeset patch # User Chris Cannam # Date 1316097398 -3600 # Node ID 6bbcfcb85e50d484a534fca7ca7aaa32b4745e3d # Parent ec6c2f6a33c4b42fe94a0139d2de8738c86c2134 Transplant rev 65abc6b39292 from live branch diff -r ec6c2f6a33c4 -r 6bbcfcb85e50 app/models/project.rb --- a/app/models/project.rb Tue Sep 13 17:18:00 2011 +0100 +++ b/app/models/project.rb Thu Sep 15 15:36:38 2011 +0100 @@ -597,7 +597,8 @@ 'custom_field_values', 'custom_fields', 'tracker_ids', - 'issue_custom_field_ids' + 'issue_custom_field_ids', + 'has_welcome_page' safe_attributes 'enabled_module_names', :if => lambda {|project, user| project.new_record? || user.allowed_to?(:select_project_modules, project) } diff -r ec6c2f6a33c4 -r 6bbcfcb85e50 vendor/plugins/redmine_bibliography/app/views/projects/show.rhtml --- a/vendor/plugins/redmine_bibliography/app/views/projects/show.rhtml Tue Sep 13 17:18:00 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/projects/show.rhtml Thu Sep 15 15:36:38 2011 +0100 @@ -10,6 +10,34 @@ <% end %> +<% if @project.has_welcome_page %> +<% page = @project.wiki.find_page("Overview") %> +<% end %> + +<% 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 %> + +
+ +
+ +<%= render(:partial => "wiki/content", :locals => {:content => page.content_for_version()}) %> + +<% else %> +

<%=l(:label_overview)%>

@@ -82,6 +110,8 @@ <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %> <% end %> +<% end %> + <% content_for :header_tags do %> <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %> <% end %>