0001-Hide-empty-ul-on-project-overview.patch

Felix Gliesche, 2015-11-05 17:57

Download (1.08 KB)

View differences:

app/views/projects/show.html.erb
23 23
    <%= textilizable @project.description %>
24 24
  </div>
25 25
  <% end %>
26
  <% if @project.homepage.present? || @subprojects.any? || @project.visible_custom_field_values.any?(&:present?) %>
26 27
  <ul>
27 28
  <% unless @project.homepage.blank? %>
28 29
    <li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to @project.homepage, @project.homepage %></li>
......
35 36
    <li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
36 37
  <% end %>
37 38
  </ul>
39
  <% end %>
38 40

  
39 41
  <% if User.current.allowed_to?(:view_issues, @project) %>
40 42
  <div class="issues box">
41
-