1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-20 15:31:12 +00:00

Move subprojects to their own div on project overview.

git-svn-id: http://svn.redmine.org/redmine/trunk@15543 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2016-06-18 06:50:32 +00:00
parent b5bc7d4604
commit b58d01de11

View File

@ -23,15 +23,11 @@
<%= textilizable @project.description %> <%= textilizable @project.description %>
</div> </div>
<% end %> <% end %>
<% if @project.homepage.present? || @subprojects.any? || @project.visible_custom_field_values.any?(&:present?) %> <% if @project.homepage.present? || @project.visible_custom_field_values.any?(&:present?) %>
<ul> <ul>
<% unless @project.homepage.blank? %> <% unless @project.homepage.blank? %>
<li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to_if uri_with_safe_scheme?(@project.homepage), @project.homepage, @project.homepage %></li> <li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to_if uri_with_safe_scheme?(@project.homepage), @project.homepage, @project.homepage %></li>
<% end %> <% end %>
<% if @subprojects.any? %>
<li><span class="label"><%=l(:label_subproject_plural)%>:</span>
<%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %></li>
<% end %>
<% render_custom_field_values(@project) do |custom_field, formatted| %> <% render_custom_field_values(@project) do |custom_field, formatted| %>
<li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li> <li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
<% end %> <% end %>
@ -95,6 +91,14 @@
<p><%= link_to l(:label_news_view_all), project_news_index_path(@project) %></p> <p><%= link_to l(:label_news_view_all), project_news_index_path(@project) %></p>
</div> </div>
<% end %> <% end %>
<% 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 %>
</div>
<% end %>
<%= call_hook(:view_projects_show_right, :project => @project) %> <%= call_hook(:view_projects_show_right, :project => @project) %>
</div> </div>