]> source.dussan.org Git - redmine.git/commitdiff
Use fancy colors as right border instead of background.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 29 Jul 2017 11:43:28 +0000 (11:43 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 29 Jul 2017 11:43:28 +0000 (11:43 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16910 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/repositories/annotate.html.erb
public/stylesheets/scm.css

index 79a548f7e61ba474e70c04b8202da82fcadfc0ac..038f01ecac6bda8d63a179e03e1ce4d93d2d69e0 100644 (file)
@@ -16,7 +16,7 @@
     <% line_num = 1; previous_revision = nil %>
     <% syntax_highlight_lines(@path, Redmine::CodesetUtil.to_utf8_by_setting(@annotate.content)).each do |line| %>
       <% revision = @annotate.revisions[line_num - 1] %>
-      <tr id="L<%= line_num %>" class="bloc-<%= revision.nil? ? 0 : colors[revision.identifier || revision.revision] %>">
+      <tr id="L<%= line_num %>" class="bloc-<%= revision.nil? ? 0 : colors[revision.identifier || revision.revision] %> <%= previous_revision && revision && revision != previous_revision ? 'bloc-change' : nil%>">
         <th class="line-num"><a href="#L<%= line_num %>"><%= line_num %></a></th>
         <td class="revision">
           <% if revision && revision != previous_revision %>
index e360d170b4a82321f21cd406eb997cbb209832e5..1f5d86e8ac31dfa05242cf93d6845507d323d4e9 100644 (file)
@@ -70,18 +70,19 @@ table.filecontent tr:target td.line-code { background-color:#DDEEFF; }
 img.filecontent { max-width: 100%; }
 
 /* 12 different colors for the annonate view */
-table.annotate tr.bloc-0 {background: #FFFFBF;}
-table.annotate tr.bloc-1 {background: #EABFFF;}
-table.annotate tr.bloc-2 {background: #BFFFFF;}
-table.annotate tr.bloc-3 {background: #FFD9BF;}
-table.annotate tr.bloc-4 {background: #E6FFBF;}
-table.annotate tr.bloc-5 {background: #BFCFFF;}
-table.annotate tr.bloc-6 {background: #FFBFEF;}
-table.annotate tr.bloc-7 {background: #FFE6BF;}
-table.annotate tr.bloc-8 {background: #FFE680;}
-table.annotate tr.bloc-9 {background: #AA80FF;}
-table.annotate tr.bloc-10 {background: #FFBFDC;}
-table.annotate tr.bloc-11 {background: #BFE4FF;}
+table.annotate tr.bloc-0 td.author {border-right-color: #FFFFBF;}
+table.annotate tr.bloc-1 td.author {border-right-color: #EABFFF;}
+table.annotate tr.bloc-2 td.author {border-right-color: #BFFFFF;}
+table.annotate tr.bloc-3 td.author {border-right-color: #FFD9BF;}
+table.annotate tr.bloc-4 td.author {border-right-color: #E6FFBF;}
+table.annotate tr.bloc-5 td.author {border-right-color: #BFCFFF;}
+table.annotate tr.bloc-6 td.author {border-right-color: #FFBFEF;}
+table.annotate tr.bloc-7 td.author {border-right-color: #FFE6BF;}
+table.annotate tr.bloc-8 td.author {border-right-color: #FFE680;}
+table.annotate tr.bloc-9 td.author {border-right-color: #AA80FF;}
+table.annotate tr.bloc-10 td.author {border-right-color: #FFBFDC;}
+table.annotate tr.bloc-11 td.author {border-right-color: #BFE4FF;}
+table.annotate tr.bloc-change {border-top:1px solid #e5e5e5;}
 
 table.annotate td.revision {
     padding:0;
@@ -94,7 +95,7 @@ table.annotate td.revision {
 table.annotate td.author {
     padding:0;
     text-align: center;
-    border-right: 1px solid #d7d7d7;
+    border-right: 6px solid #d7d7d7;
     white-space: nowrap;
     padding-left: 1em;
     padding-right: 1em;