]> source.dussan.org Git - redmine.git/commitdiff
Wrap subprojects in the overview section with an unordered list (#29289).
authorGo MAEDA <maeda@farend.jp>
Tue, 23 Apr 2019 15:37:06 +0000 (15:37 +0000)
committerGo MAEDA <maeda@farend.jp>
Tue, 23 Apr 2019 15:37:06 +0000 (15:37 +0000)
Patch by Bernhard Rohloff.

git-svn-id: http://svn.redmine.org/redmine/trunk@18077 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/show.html.erb
public/stylesheets/application.css

index 9c2d475247378fb2327012727e399fb7b4dd9650..16645b759776e7b39faddf2f8d5f150d553441f6 100644 (file)
   <% if @subprojects.any? %>
   <div class="projects box">
     <h3 class="icon icon-projects"><%=l(:label_subproject_plural)%></h3>
-    <%= @subprojects.collect{|p| link_to p, project_path(p), :class => p.css_classes}.join(", ").html_safe %>
+       <ul class="subprojects">
+         <% @subprojects.each do |project| %>
+         <li><%= link_to(project.name, project_path(project), :class => project.css_classes).html_safe %></li>
+         <% end %> 
+    </ul>
   </div>
   <% end %>
 
index 25acf1a14c20015273658cc97041122a05c679fd..09bcd5b7e7490c619f5a46ad801c38a7b9aeaa03 100644 (file)
@@ -639,6 +639,10 @@ ul.projects div.description li {list-style-type:initial;}
 
 #notified-projects>ul, #tracker_project_ids>ul, #custom_field_project_ids>ul {max-height:250px; overflow-y:auto;}
 
+ul.subprojects {list-style: none; display: inline-block; padding: 0; margin: 0;}
+ul.subprojects li {float: left;}
+ul.subprojects li:not(:last-child)::after {content: ', '; white-space: pre; white-space: pre;}
+
 #related-issues li img {vertical-align:middle;}
 
 ul.properties {padding:0; font-size: 0.9em; color: #777;}