_changeset.html.erb

Jonathan Monahan, 2014-06-30 13:29

Download (1.26 KB)

 
1
<h2><%= avatar(@changeset.user, :size => "24") %><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>
2

    
3
<% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %>
4
<table class="revision-info">
5
  <% if @changeset.scmid.present? %>
6
    <tr>
7
      <td>ID</td><td><%= h(@changeset.scmid) %></td>
8
    </tr>
9
  <% end %>
10
  <% if @changeset.parents.present? %>
11
    <tr>
12
      <td><%= l(:label_parent_revision) %></td>
13
      <td>
14
        <%= @changeset.parents.collect{
15
              |p| link_to_revision(p, @repository, :text => format_revision(p))
16
            }.join(", ").html_safe %>
17
      </td>
18
    </tr>
19
  <% end %>
20
  <% if @changeset.children.present? %>
21
    <tr>
22
      <td><%= l(:label_child_revision) %></td>
23
      <td>
24
       <%= @changeset.children.collect{
25
              |p| link_to_revision(p, @repository, :text => format_revision(p))
26
             }.join(", ").html_safe %>
27
      </td>
28
    </tr>
29
  <% end %>
30
</table>
31
<% end %>
32

    
33
<p>
34
<span class="author">
35
<%= authoring(@changeset.committed_on, @changeset.author) %>
36
</span>
37
</p>
38

    
39
<%= textilizable @changeset.comments %>
40

    
41
<% if @changeset.issues.visible.any? || User.current.allowed_to?(:manage_related_issues, @repository.project) %>
42
  <%= render :partial => 'related_issues' %>
43
<% end %>
44