Project

General

Profile

Patch #23146 » show_commit_messages_like_journal_entries.patch

Marius BĂLTEANU, 2016-06-23 12:25

View differences:

app/views/repositories/_changeset.html.erb
1
<h2><%= avatar(@changeset.user, :size => "24") %><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>
1
<h2><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>
2 2

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

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

  
41 36
<%= textilizable @changeset.comments %>
public/stylesheets/application.css
432 432
.journal ul.details img {margin:0 0 -3px 4px;}
433 433
div.journal {overflow:auto;}
434 434
div.journal.private-notes {border-left:2px solid #d22; padding-left:4px; margin-left:-6px;}
435
div.journal ul.details {color:#959595; margin-bottom: 1.5em;}
436
div.journal ul.details a {color:#70A7CD;}
437
div.journal ul.details a:hover {color:#D14848;}
435
div.journal ul.details, ul.revision-info {color:#959595; margin-bottom: 1.5em;}
436
div.journal ul.details a, ul.revision-info a {color:#70A7CD;}
437
div.journal ul.details a:hover,  ul.revision-info a:hover {color:#D14848;}
438 438

  
439 439
div#activity dl, #search-results { margin-left: 2em; }
440 440
div#activity dd, #search-results dd { margin-bottom: 1em; padding-left: 18px; font-size: 0.9em; }
(4-4/4)