]> source.dussan.org Git - redmine.git/commitdiff
Adds CSS class for closed subprojects on project overview (#23152).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 28 Jun 2016 19:15:30 +0000 (19:15 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 28 Jun 2016 19:15:30 +0000 (19:15 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15585 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/show.html.erb

index 3e384530c81625d034010941c08e735099b88f54..b68a5ac263bebdaa053bb97be55b55ad7fe0564f 100644 (file)
@@ -95,7 +95,7 @@
   <% if @subprojects.any? %>
   <div class="projects box">
     <h3><%=l(:label_subproject_plural)%></h3>
-    <%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %>
+    <%= @subprojects.collect{|p| link_to p, project_path(p), :class => p.css_classes}.join(", ").html_safe %>
   </div>
   <% end %>