]> source.dussan.org Git - redmine.git/commitdiff
Show revision details using the same structure and look from the journals details...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 30 Aug 2016 21:11:57 +0000 (21:11 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 30 Aug 2016 21:11:57 +0000 (21:11 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@15761 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/repositories/_changeset.html.erb
public/stylesheets/application.css

index 3c2c1c09d64f828002810f9237380fa6d083f43b..dbdf171607d6f79731277afa212a4536c5c2428a 100644 (file)
@@ -1,41 +1,36 @@
-<h2><%= avatar(@changeset.user, :size => "24") %><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>
+<h2><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>
 
 <div class="details">
+  <h4>
+    <%= avatar(@changeset.user, :size => "24") %>
+    <%= authoring(@changeset.committed_on, @changeset.author) %>
+  </h4>
   <% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %>
-  <table class="revision-info">
+  <ul class="revision-info">
     <% if @changeset.scmid.present? %>
-      <tr>
-        <td>ID</td><td><%= @changeset.scmid %></td>
-      </tr>
+      <li>
+        <strong>ID </strong><%= @changeset.scmid %>
+      </li>
     <% end %>
     <% if @changeset.parents.present? %>
-      <tr>
-        <td><%= l(:label_parent_revision) %></td>
-        <td>
+      <li>
+        <strong><%= l(:label_parent_revision) %></strong>
           <%= @changeset.parents.collect{
                 |p| link_to_revision(p, @repository, :text => format_revision(p))
               }.join(", ").html_safe %>
-        </td>
-      </tr>
+      </li>
     <% end %>
     <% if @changeset.children.present? %>
-      <tr>
-        <td><%= l(:label_child_revision) %></td>
-        <td>
+      <li>
+        <strong><%= l(:label_child_revision) %></strong>
          <%= @changeset.children.collect{
                 |p| link_to_revision(p, @repository, :text => format_revision(p))
                }.join(", ").html_safe %>
-        </td>
-      </tr>
+      </li>
     <% end %>
-  </table>
+  </ul>
   <% end %>
 
-  <p>
-  <span class="author">
-  <%= authoring(@changeset.committed_on, @changeset.author) %>
-  </span>
-  </p>
 </div>
 
 <%= textilizable @changeset.comments %>
index bbc32992e55d661a269f23925888d61d71edbecb..6786cb9506034a8ca83636870ade84baecb215f1 100644 (file)
@@ -433,9 +433,9 @@ div#issue-changesets p { margin-top: 0; margin-bottom: 1em;}
 
 div.journal {overflow:auto;}
 div.journal.private-notes {border-left:2px solid #d22; padding-left:4px; margin-left:-6px;}
-div.journal ul.details {color:#959595; margin-bottom: 1.5em;}
-div.journal ul.details a {color:#70A7CD;}
-div.journal ul.details a:hover {color:#D14848;}
+div.journal ul.details, ul.revision-info {color:#959595; margin-bottom: 1.5em;}
+div.journal ul.details a, ul.revision-info a {color:#70A7CD;}
+div.journal ul.details a:hover,  ul.revision-info a:hover {color:#D14848;}
 
 div#activity dl, #search-results { margin-left: 2em; }
 div#activity dd, #search-results dd { margin-bottom: 1em; padding-left: 18px; font-size: 0.9em; }