Prevent empty table from being rendered.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8505 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-01-04 18:31:27 +00:00
parent 091de63f30
commit 9b27e1cd83

View File

@ -25,13 +25,14 @@
<h2><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2> <h2><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>
<% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %>
<table class="revision-info"> <table class="revision-info">
<% if @changeset.scmid %> <% if @changeset.scmid.present? %>
<tr> <tr>
<td>ID</td><td><%= h(@changeset.scmid) %></td> <td>ID</td><td><%= h(@changeset.scmid) %></td>
</tr> </tr>
<% end %> <% end %>
<% unless @changeset.parents.blank? %> <% if @changeset.parents.present? %>
<tr> <tr>
<td><%= l(:label_parent_revision) %></td> <td><%= l(:label_parent_revision) %></td>
<td> <td>
@ -41,7 +42,7 @@
</td> </td>
</tr> </tr>
<% end %> <% end %>
<% unless @changeset.children.blank? %> <% if @changeset.children.present? %>
<tr> <tr>
<td><%= l(:label_child_revision) %></td> <td><%= l(:label_child_revision) %></td>
<td> <td>
@ -52,6 +53,8 @@
</tr> </tr>
<% end %> <% end %>
</table> </table>
<% end %>
<p> <p>
<span class="author"> <span class="author">
<%= authoring(@changeset.committed_on, @changeset.author) %> <%= authoring(@changeset.committed_on, @changeset.author) %>