summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-11-07 08:04:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-11-07 08:04:20 +0000
commit03f059e3ba9836bb67eed749cefe441506ca6397 (patch)
treee0c28e48df0dff4c6e3031b82ab760d1dfc7ebfc /app/views
parent945a091c94a9ed651f61e225fa8646479478e9d4 (diff)
downloadredmine-03f059e3ba9836bb67eed749cefe441506ca6397.tar.gz
redmine-03f059e3ba9836bb67eed749cefe441506ca6397.zip
Hide empty ul on project overview (#21159).
Patch by Felix Gliesche. git-svn-id: http://svn.redmine.org/redmine/trunk@14797 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/show.html.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb
index 006f84b26..82b43bc24 100644
--- a/app/views/projects/show.html.erb
+++ b/app/views/projects/show.html.erb
@@ -23,6 +23,7 @@
<%= textilizable @project.description %>
</div>
<% end %>
+ <% if @project.homepage.present? || @subprojects.any? || @project.visible_custom_field_values.any?(&:present?) %>
<ul>
<% unless @project.homepage.blank? %>
<li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to @project.homepage, @project.homepage %></li>
@@ -35,6 +36,7 @@
<li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
<% end %>
</ul>
+ <% end %>
<% if User.current.allowed_to?(:view_issues, @project) %>
<div class="issues box">