diff app/views/repositories/revision.html.erb @ 909:cbb26bc654de redmine-1.3

Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author Chris Cannam
date Fri, 24 Feb 2012 19:09:32 +0000
parents c6c2cbd0afee
children 5e80956cc792 433d4f72a19b
line wrap: on
line diff
--- a/app/views/repositories/revision.html.erb	Fri Feb 24 18:36:29 2012 +0000
+++ b/app/views/repositories/revision.html.erb	Fri Feb 24 19:09:32 2012 +0000
@@ -25,8 +25,38 @@
 
 <h2><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>
 
-<p><% if @changeset.scmid %>ID: <%= @changeset.scmid %><br /><% end %>
-<span class="author"><%= authoring(@changeset.committed_on, @changeset.author) %></span></p>
+<table class="revision-info">
+  <% if @changeset.scmid %>
+    <tr>
+      <td>ID</td><td><%= h(@changeset.scmid) %></td>
+    </tr>
+  <% end %>
+  <% unless @changeset.parents.blank? %>
+    <tr>
+      <td><%= l(:label_parent_revision) %></td>
+      <td>
+        <%= @changeset.parents.collect{
+              |p| link_to_revision(p, @project, :text => format_revision(p))
+            }.join(", ") %>
+      </td>
+    </tr>
+  <% end %>
+  <% unless @changeset.children.blank? %>
+    <tr>
+      <td><%= l(:label_child_revision) %></td>
+      <td>
+       <%= @changeset.children.collect{
+              |p| link_to_revision(p, @project, :text => format_revision(p))
+             }.join(", ") %>
+      </td>
+    </tr>
+  <% end %>
+</table>
+<p>
+<span class="author">
+<%= authoring(@changeset.committed_on, @changeset.author) %>
+</span>
+</p>
 
 <%= textilizable @changeset.comments %>