summaryrefslogtreecommitdiffstats
path: root/app/views/projects/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/show.html.erb')
-rw-r--r--app/views/projects/show.html.erb14
1 files changed, 9 insertions, 5 deletions
diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb
index 007f0fab2..3e384530c 100644
--- a/app/views/projects/show.html.erb
+++ b/app/views/projects/show.html.erb
@@ -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>