comparison 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
comparison
equal deleted inserted replaced
29572:d86b54d9bb0c 29573:2b42fa1810c4
94 filelog = filelog.tmpl 94 filelog = filelog.tmpl
95 fileline = ' 95 fileline = '
96 <a href="#{lineid}"></a><span id="{lineid}">{strip(line|escape, '\r\n')}</span>' 96 <a href="#{lineid}"></a><span id="{lineid}">{strip(line|escape, '\r\n')}</span>'
97 annotateline = ' 97 annotateline = '
98 <tr id="{lineid}" style="font-family:monospace" class="parity{parity}{ifeq(node, originalnode, ' thisrev')}"> 98 <tr id="{lineid}" style="font-family:monospace" class="parity{parity}{ifeq(node, originalnode, ' thisrev')}">
99 <td class="annotate linenr" style="text-align: right;"> 99 <td class="annotate linenr parity{blockparity}" style="text-align: right;">
100 {if(blockhead, 100 {if(blockhead,
101 '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}"> 101 '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">
102 {rev} 102 {rev}
103 </a>')} 103 </a>')}
104 <div class="annotate-info"> 104 <div class="annotate-info">