Mercurial > hg > soundsoftware-site
comparison app/views/projects/show.rhtml @ 351:ebf53b46f3f3 feature_123
Add the overview setting to the project settings. Still rather clumsy, but it does appear to work!
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 31 Mar 2011 18:20:16 +0100 |
parents | a1e6dc0e204b |
children | 350acce374a2 |
comparison
equal
deleted
inserted
replaced
350:a1e6dc0e204b | 351:ebf53b46f3f3 |
---|---|
2 <% if User.current.allowed_to?(:add_subprojects, @project) %> | 2 <% if User.current.allowed_to?(:add_subprojects, @project) %> |
3 <%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %> | 3 <%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %> |
4 <% end %> | 4 <% end %> |
5 </div> | 5 </div> |
6 | 6 |
7 <% if @project.has_welcome_page %> | |
7 <% page = @project.wiki.find_page("Overview") %> | 8 <% page = @project.wiki.find_page("Overview") %> |
9 <% end %> | |
8 | 10 |
9 <% if page %> | 11 <% if page %> |
10 | 12 |
11 <div class="contextual" style="clear: right"> | 13 <div class="contextual" style="clear: right"> |
12 <ul> | 14 <ul> |