Преглед изворни кода

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
tags/4.1.0
Go MAEDA пре 5 година
родитељ
комит
e184fc971d
2 измењених фајлова са 9 додато и 1 уклоњено
  1. 5
    1
      app/views/projects/show.html.erb
  2. 4
    0
      public/stylesheets/application.css

+ 5
- 1
app/views/projects/show.html.erb Прегледај датотеку

@@ -118,7 +118,11 @@
<% 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 %>


+ 4
- 0
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;}

Loading…
Откажи
Сачувај