comparison vendor/plugins/redmine_bibliography/app/views/projects/show.rhtml @ 550:2df99e8d191e feature_36

Feature #240 - does not show link if module disabled.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Mon, 01 Aug 2011 18:08:33 +0100
parents 7c4b96efa402
children e2663e0bd5a6
comparison
equal deleted inserted replaced
547:56ad0c490f5e 550:2df99e8d191e
1 <div class="contextual"> 1 <div class="contextual">
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 5
6 <%= link_to l(:label_add_publication_to_project), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %> 6 <% if @project.module_enabled? :redmine_bibliography %>
7 7 <%= link_to l(:label_add_publication_to_project), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %>
8 <% end %>
8 </div> 9 </div>
9 10
10 <h2><%=l(:label_overview)%></h2> 11 <h2><%=l(:label_overview)%></h2>
11 12
12 <div class="splitcontentleft"> 13 <div class="splitcontentleft">