@@ -23,15 +23,11 | |||
|
23 | 23 | <%= textilizable @project.description %> |
|
24 | 24 | </div> |
|
25 | 25 | <% end %> |
|
26 |
<% if @project.homepage.present? || @ |
|
|
26 | <% if @project.homepage.present? || @project.visible_custom_field_values.any?(&:present?) %> | |
|
27 | 27 | <ul> |
|
28 | 28 | <% unless @project.homepage.blank? %> |
|
29 | 29 | <li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to_if uri_with_safe_scheme?(@project.homepage), @project.homepage, @project.homepage %></li> |
|
30 | 30 | <% end %> |
|
31 | <% if @subprojects.any? %> | |
|
32 | <li><span class="label"><%=l(:label_subproject_plural)%>:</span> | |
|
33 | <%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %></li> | |
|
34 | <% end %> | |
|
35 | 31 | <% render_custom_field_values(@project) do |custom_field, formatted| %> |
|
36 | 32 | <li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li> |
|
37 | 33 | <% end %> |
@@ -95,6 +91,14 | |||
|
95 | 91 | <p><%= link_to l(:label_news_view_all), project_news_index_path(@project) %></p> |
|
96 | 92 | </div> |
|
97 | 93 | <% end %> |
|
94 | ||
|
95 | <% if @subprojects.any? %> | |
|
96 | <div class="projects box"> | |
|
97 | <h3><%=l(:label_subproject_plural)%></h3> | |
|
98 | <%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %> | |
|
99 | </div> | |
|
100 | <% end %> | |
|
101 | ||
|
98 | 102 | <%= call_hook(:view_projects_show_right, :project => @project) %> |
|
99 | 103 | </div> |
|
100 | 104 |
General Comments 0
You need to be logged in to leave comments.
Login now