diff mercurial/templates/gitweb/map @ 29387:6b77adc2c7b5

hgweb: highlight data of the current revision in annotate view * Distinguish the /annotate/<revision>/<file>#<linenumber> link when it would lead to the current page (i.e. <revision> is the current revision) (style it gray and undecorated). This indicates more clearly that this is a "dead-end" in blame navigation. * Display lines changed in current revision in green.
author Denis Laxalde <denis.laxalde@logilab.fr>
date Thu, 02 Jun 2016 16:26:50 +0200
parents 8e8b3371bee1
children f694e20193f2
line wrap: on
line diff
--- a/mercurial/templates/gitweb/map	Tue Jun 21 17:15:51 2016 +0100
+++ b/mercurial/templates/gitweb/map	Thu Jun 02 16:26:50 2016 +0200
@@ -95,7 +95,7 @@
 fileline = '
   <a href="#{lineid}"></a><span id="{lineid}">{strip(line|escape, '\r\n')}</span>'
 annotateline = '
-  <tr id="{lineid}" style="font-family:monospace" class="parity{parity}">
+  <tr id="{lineid}" style="font-family:monospace" class="parity{parity}{ifeq(node, originalnode, ' thisrev')}">
     <td class="linenr" style="text-align: right;">
       <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}"
          title="{node|short}: {desc|escape|firstline}">{author|user}@{rev}</a>