diff 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
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/views/projects/show.rhtml	Fri Jul 29 19:15:26 2011 +0100
+++ b/vendor/plugins/redmine_bibliography/app/views/projects/show.rhtml	Mon Aug 01 18:08:33 2011 +0100
@@ -3,8 +3,9 @@
 		<%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %>
 	<% end %>
 	
-	<%= link_to l(:label_add_publication_to_project), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %>
-	
+	<% if @project.module_enabled? :redmine_bibliography %>
+		<%= link_to l(:label_add_publication_to_project), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %>		
+	<% end %>
 </div>
 
 <h2><%=l(:label_overview)%></h2>