From e184fc971dad9dc4ffc9e2a673bce87a4ed5618e Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 23 Apr 2019 15:37:06 +0000 Subject: [PATCH] Wrap subprojects in the overview section with an unordered list (#29289). 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 | 6 +++++- public/stylesheets/application.css | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb index 9c2d47524..16645b759 100644 --- a/app/views/projects/show.html.erb +++ b/app/views/projects/show.html.erb @@ -118,7 +118,11 @@ <% if @subprojects.any? %>

<%=l(:label_subproject_plural)%>

- <%= @subprojects.collect{|p| link_to p, project_path(p), :class => p.css_classes}.join(", ").html_safe %> +
<% end %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 25acf1a14..09bcd5b7e 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -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;}