# HG changeset patch # User Chris Cannam # Date 1301584478 -3600 # Node ID a1e6dc0e204b23069fda3842a93c4c9cac38a429 # Parent f039bb649d0cf03a4b7b71d14564c2d15bc7aca0 Show Overview wiki page, if it exists, instead of (almost) entire overview page diff -r f039bb649d0c -r a1e6dc0e204b app/views/projects/show.rhtml --- a/app/views/projects/show.rhtml Thu Mar 31 15:21:43 2011 +0100 +++ b/app/views/projects/show.rhtml Thu Mar 31 16:14:38 2011 +0100 @@ -4,6 +4,27 @@ <% end %> +<% page = @project.wiki.find_page("Overview") %> + +<% if page %> + +
+ +
+ +<%= render(:partial => "wiki/content", :locals => {:content => page.content_for_version()}) %> + +<% else %> +

<%=l(:label_overview)%>

@@ -79,6 +100,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 %>