changeset 646:e01aa4ccc0a2 feature_36

Might as well bring in stylesheet only when needed
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 09 Sep 2011 11:49:46 +0100
parents b83173d26d86
children 525f48af3f54
files vendor/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb	Fri Sep 09 11:48:39 2011 +0100
+++ b/vendor/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb	Fri Sep 09 11:49:46 2011 +0100
@@ -1,5 +1,5 @@
+<% if @project.publications.any? %>
 <%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
-<% if @project.publications.any? %>
   <div id="bibliography">
     <div class="box">
     <h3><%=l(:label_related_publication_plural)%></h3>