changeset 1447:1e67c667641f live

Feature #768 use "ul" to list subprojects
author Chris Cannam
date Tue, 22 Oct 2013 11:58:17 +0100
parents 3db88d605fa7
children b1b608507209
files plugins/redmine_bibliography/app/views/projects/show.html.erb public/themes/soundsoftware/stylesheets/application.css
diffstat 2 files changed, 11 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/redmine_bibliography/app/views/projects/show.html.erb	Tue Oct 22 11:36:10 2013 +0100
+++ b/plugins/redmine_bibliography/app/views/projects/show.html.erb	Tue Oct 22 11:58:17 2013 +0100
@@ -58,19 +58,20 @@
 		<%= textilizable @project.description %>
 	</div>	
   <% end %>
-	<ul>
-	<% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %></li><% end %>
+  <div class="overviewfields">
+	<% unless @project.homepage.blank? %><h4><%=l(:field_homepage)%>:</h4><ul><li><%= link_to h(@project.homepage), @project.homepage %></li></ul><% end %>
   <% if @subprojects.any? %>
- 	<li><%=l(:label_subproject_plural)%>:
-	    <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ").html_safe %></li>
+ 	<h4><%=l(:label_subproject_plural)%>:</h4>
+          <ul>
+	    <li><%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join("</li><li>").html_safe %></li>
+          </ul>
   <% end %>
 	<% @project.visible_custom_field_values.each do |custom_value| %>
 	<% if !custom_value.value.blank? %>
-	   <li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
+	   <h4><%= custom_value.custom_field.name%>:</h4><ul><li><%=h show_value(custom_value) %></li></ul>
 	<% end %>
 	<% end %>
-	</ul>	
-
+  </div>
   <% if User.current.allowed_to?(:view_issues, @project) and @open_issues_by_tracker.values.any? %>
   <div class="issues box">    
     <h3><%=l(:label_issue_tracking)%></h3>
--- a/public/themes/soundsoftware/stylesheets/application.css	Tue Oct 22 11:36:10 2013 +0100
+++ b/public/themes/soundsoftware/stylesheets/application.css	Tue Oct 22 11:58:17 2013 +0100
@@ -158,6 +158,9 @@
 
 .wiki p, .wiki li { margin-left: 30px; margin-right: 3em; }
 
+.overviewfields h4 { margin-left: 30px; margin-bottom: 0; }
+.overviewfields ul { margin-top: 0; }
+
 .repository-info .wiki p { margin-left: 0 }
 
 div.issue { background: #fdfaf0; border: 1px solid #a9b680; border-left: 4px solid #a9b680; }