diff mercurial/templates/gitweb/map @ 29573:2b42fa1810c4

gitweb: make different blocks of annotated lines have different colors
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 16 Jul 2016 15:00:36 +0800
parents d8f2c718deec
children 10d27ee97032
line wrap: on
line diff
--- a/mercurial/templates/gitweb/map	Sat Jul 16 14:49:07 2016 +0800
+++ b/mercurial/templates/gitweb/map	Sat Jul 16 15:00:36 2016 +0800
@@ -96,7 +96,7 @@
   <a href="#{lineid}"></a><span id="{lineid}">{strip(line|escape, '\r\n')}</span>'
 annotateline = '
   <tr id="{lineid}" style="font-family:monospace" class="parity{parity}{ifeq(node, originalnode, ' thisrev')}">
-    <td class="annotate linenr" style="text-align: right;">
+    <td class="annotate linenr parity{blockparity}" style="text-align: right;">
       {if(blockhead,
           '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">
              {rev}