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:
parent
b5bc7d4604
commit
b58d01de11
@ -23,15 +23,11 @@
|
||||
<%= textilizable @project.description %>
|
||||
</div>
|
||||
<% 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>
|
||||
<% 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>
|
||||
<% 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| %>
|
||||
<li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
|
||||
<% end %>
|
||||
@ -95,6 +91,14 @@
|
||||
<p><%= link_to l(:label_news_view_all), project_news_index_path(@project) %></p>
|
||||
</div>
|
||||
<% 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) %>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user