|
29 | 29 | <h2><%= avatar(@changeset.user, :size => "24") %><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>
|
30 | 30 |
|
31 | 31 | <div class="details">
|
32 |
| -<% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %> |
33 |
| -<table class="revision-info"> |
34 |
| - <% if @changeset.scmid.present? %> |
35 |
| - <tr> |
36 |
| - <td>ID</td><td><%= @changeset.scmid %></td> |
37 |
| - </tr> |
| 32 | + <% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %> |
| 33 | + <table class="revision-info"> |
| 34 | + <% if @changeset.scmid.present? %> |
| 35 | + <tr> |
| 36 | + <td>ID</td><td><%= @changeset.scmid %></td> |
| 37 | + </tr> |
| 38 | + <% end %> |
| 39 | + <% if @changeset.parents.present? %> |
| 40 | + <tr> |
| 41 | + <td><%= l(:label_parent_revision) %></td> |
| 42 | + <td> |
| 43 | + <%= @changeset.parents.collect{ |
| 44 | + |p| link_to_revision(p, @repository, :text => format_revision(p)) |
| 45 | + }.join(", ").html_safe %> |
| 46 | + </td> |
| 47 | + </tr> |
| 48 | + <% end %> |
| 49 | + <% if @changeset.children.present? %> |
| 50 | + <tr> |
| 51 | + <td><%= l(:label_child_revision) %></td> |
| 52 | + <td> |
| 53 | + <%= @changeset.children.collect{ |
| 54 | + |p| link_to_revision(p, @repository, :text => format_revision(p)) |
| 55 | + }.join(", ").html_safe %> |
| 56 | + </td> |
| 57 | + </tr> |
| 58 | + <% end %> |
| 59 | + </table> |
38 | 60 | <% end %>
|
39 |
| - <% if @changeset.parents.present? %> |
40 |
| - <tr> |
41 |
| - <td><%= l(:label_parent_revision) %></td> |
42 |
| - <td> |
43 |
| - <%= @changeset.parents.collect{ |
44 |
| - |p| link_to_revision(p, @repository, :text => format_revision(p)) |
45 |
| - }.join(", ").html_safe %> |
46 |
| - </td> |
47 |
| - </tr> |
48 |
| - <% end %> |
49 |
| - <% if @changeset.children.present? %> |
50 |
| - <tr> |
51 |
| - <td><%= l(:label_child_revision) %></td> |
52 |
| - <td> |
53 |
| - <%= @changeset.children.collect{ |
54 |
| - |p| link_to_revision(p, @repository, :text => format_revision(p)) |
55 |
| - }.join(", ").html_safe %> |
56 |
| - </td> |
57 |
| - </tr> |
58 |
| - <% end %> |
59 |
| -</table> |
60 |
| -<% end %> |
61 | 61 |
|
62 |
| -<p> |
63 |
| -<span class="author"> |
64 |
| -<%= authoring(@changeset.committed_on, @changeset.author) %> |
65 |
| -</span> |
66 |
| -</p> |
| 62 | + <p> |
| 63 | + <span class="author"> |
| 64 | + <%= authoring(@changeset.committed_on, @changeset.author) %> |
| 65 | + </span> |
| 66 | + </p> |
67 | 67 | </div>
|
68 | 68 |
|
69 | 69 | <%= textilizable @changeset.comments %>
|
|
0 commit comments