From patchwork Wed Jul 17 19:00:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [V2] hgweb: highlight line which is linked to at comparison view From: Alexander Plavin X-Patchwork-Id: 1912 Message-Id: To: mercurial-devel@selenic.com Date: Wed, 17 Jul 2013 23:00:00 +0400 # HG changeset patch # User Alexander Plavin # Date 1373722374 -14400 # Sat Jul 13 17:32:54 2013 +0400 # Node ID e498e628f4234b646b904779a011a47ac15448f7 # Parent 85647c04ac7c35b7cbddf8612d81198f1ee7953f hgweb: highlight line which is linked to at comparison view diff -r 85647c04ac7c -r e498e628f423 mercurial/templates/paper/map --- a/mercurial/templates/paper/map Sat Jul 13 17:31:53 2013 +0400 +++ b/mercurial/templates/paper/map Sat Jul 13 17:32:54 2013 +0400 @@ -99,9 +99,9 @@ {lines} ' comparisonline = ' - - {leftlinenumber} {leftline|escape} - {rightlinenumber} {rightline|escape} + + {leftlinenumber} {leftline|escape} + {rightlinenumber} {rightline|escape} ' changelogparent = ' diff -r 85647c04ac7c -r e498e628f423 mercurial/templates/static/style-paper.css --- a/mercurial/templates/static/style-paper.css Sat Jul 13 17:31:53 2013 +0400 +++ b/mercurial/templates/static/style-paper.css Sat Jul 13 17:32:54 2013 +0400 @@ -252,7 +252,7 @@ content: counters(lineno, "."); } -.sourcelines > span:target { +.sourcelines > span:target, tr:target td { background-color: #bfdfff; } diff -r 85647c04ac7c -r e498e628f423 tests/test-hgweb-diffs.t --- a/tests/test-hgweb-diffs.t Sat Jul 13 17:31:53 2013 +0400 +++ b/tests/test-hgweb-diffs.t Sat Jul 13 17:32:54 2013 +0400 @@ -660,9 +660,9 @@ - - - 1 a + + + 1 a @@ -782,13 +782,13 @@ - - 1 a - 1 a + + 1 a + 1 a - - - 2 a + + + 2 a @@ -906,13 +906,13 @@ - - 1 a - + + 1 a + - - 2 a - + + 2 a +