div-around-revision-details.diff

Go MAEDA, 2015-07-12 13:20

Download (2.45 KB)

View differences:

app/views/repositories/revision.html.erb (working copy)
28 28

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

  
31
<% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %>
32
<table class="revision-info">
33
  <% if @changeset.scmid.present? %>
34
    <tr>
35
      <td>ID</td><td><%= @changeset.scmid %></td>
36
    </tr>
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>
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>
37 60
  <% end %>
38
  <% if @changeset.parents.present? %>
39
    <tr>
40
      <td><%= l(:label_parent_revision) %></td>
41
      <td>
42
        <%= @changeset.parents.collect{
43
              |p| link_to_revision(p, @repository, :text => format_revision(p))
44
            }.join(", ").html_safe %>
45
      </td>
46
    </tr>
47
  <% end %>
48
  <% if @changeset.children.present? %>
49
    <tr>
50
      <td><%= l(:label_child_revision) %></td>
51
      <td>
52
       <%= @changeset.children.collect{
53
              |p| link_to_revision(p, @repository, :text => format_revision(p))
54
             }.join(", ").html_safe %>
55
      </td>
56
    </tr>
57
  <% end %>
58
</table>
59
<% end %>
60 61

  
61
<p>
62
<span class="author">
63
<%= authoring(@changeset.committed_on, @changeset.author) %>
64
</span>
65
</p>
62
  <p>
63
  <span class="author">
64
  <%= authoring(@changeset.committed_on, @changeset.author) %>
65
  </span>
66
  </p>
67
</div>
66 68

  
67 69
<%= textilizable @changeset.comments %>
68 70