summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/repositories/annotate.html.erb2
-rw-r--r--public/stylesheets/scm.css27
2 files changed, 15 insertions, 14 deletions
diff --git a/app/views/repositories/annotate.html.erb b/app/views/repositories/annotate.html.erb
index 79a548f7e..038f01eca 100644
--- a/app/views/repositories/annotate.html.erb
+++ b/app/views/repositories/annotate.html.erb
@@ -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 %>
diff --git a/public/stylesheets/scm.css b/public/stylesheets/scm.css
index e360d170b..1f5d86e8a 100644
--- a/public/stylesheets/scm.css
+++ b/public/stylesheets/scm.css
@@ -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;