scm: view: add parents and children on the revision page (#5501)

Contributed by Jan Topiński.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7721 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2011-11-03 11:34:09 +00:00
parent e1f3719634
commit cc79b6d04a
3 changed files with 39 additions and 2 deletions
+32 -2
View File
@@ -25,8 +25,38 @@
<h2><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>
<p><% if @changeset.scmid %>ID: <%= h(@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(", ") %><br />
</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(", ") %><br />
</td>
</tr>
<% end %>
</table>
<p>
<span class="author">
<%= authoring(@changeset.committed_on, @changeset.author) %>
</span>
</p>
<%= textilizable @changeset.comments %>