diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-04 18:31:27 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-04 18:31:27 +0000 |
commit | 9b27e1cd83df75200f1a59deea45252d75a072ab (patch) | |
tree | f41eed8330d60ce285274360a112c9172f8c061c /app/views/repositories/revision.html.erb | |
parent | 091de63f30ee9e2268b6098c11048416e224791b (diff) | |
download | redmine-9b27e1cd83df75200f1a59deea45252d75a072ab.tar.gz redmine-9b27e1cd83df75200f1a59deea45252d75a072ab.zip |
Prevent empty table from being rendered.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8505 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/repositories/revision.html.erb')
-rw-r--r-- | app/views/repositories/revision.html.erb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/views/repositories/revision.html.erb b/app/views/repositories/revision.html.erb index 59952bd6d..67c582e53 100644 --- a/app/views/repositories/revision.html.erb +++ b/app/views/repositories/revision.html.erb @@ -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) %> |