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:
parent
091de63f30
commit
9b27e1cd83
|
@ -25,13 +25,14 @@
|
|||
|
||||
<h2><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>
|
||||
|
||||
<% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %>
|
||||
<table class="revision-info">
|
||||
<% if @changeset.scmid %>
|
||||
<% if @changeset.scmid.present? %>
|
||||
<tr>
|
||||
<td>ID</td><td><%= h(@changeset.scmid) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<% unless @changeset.parents.blank? %>
|
||||
<% if @changeset.parents.present? %>
|
||||
<tr>
|
||||
<td><%= l(:label_parent_revision) %></td>
|
||||
<td>
|
||||
|
@ -41,7 +42,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<% unless @changeset.children.blank? %>
|
||||
<% if @changeset.children.present? %>
|
||||
<tr>
|
||||
<td><%= l(:label_child_revision) %></td>
|
||||
<td>
|
||||
|
@ -52,6 +53,8 @@
|
|||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
<% end %>
|
||||
|
||||
<p>
|
||||
<span class="author">
|
||||
<%= authoring(@changeset.committed_on, @changeset.author) %>
|
||||
|
|
Loading…
Reference in New Issue