From: Jean-Philippe Lang Date: Sun, 8 Jun 2008 15:46:15 +0000 (+0000) Subject: Don't display the table headers if there is no changeset to display. X-Git-Tag: 0.8.0-RC1~470 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0aba4255f58252da835729b09ccfce9b0ded14be;p=redmine.git Don't display the table headers if there is no changeset to display. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1511 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/repositories/changes.rhtml b/app/views/repositories/changes.rhtml index 2d7462b29..341c6cba5 100644 --- a/app/views/repositories/changes.rhtml +++ b/app/views/repositories/changes.rhtml @@ -13,6 +13,7 @@ <%= "(#{number_to_human_size(@entry.size)})" if @entry.size %>

-<%= render :partial => 'revisions', :locals => {:project => @project, :path => @path, :revisions => @changesets, :entry => @entry }%> +<%= render(:partial => 'revisions', + :locals => {:project => @project, :path => @path, :revisions => @changesets, :entry => @entry }) unless @changesets.empty? %> <% html_title(l(:label_change_plural)) -%>