comparison mercurial/templates/spartan/map @ 29522:9c37df347485

hgweb: add link to parents of annotated revision in annotate view The link is embedded into a div with class="annotate-info" that only shows up upon hover of the annotate column. To avoid duplicate hover-overs (this new one and the one coming from link's title), drop "title" attribute from a element and put it in the annotate-info element.
author Denis Laxalde <denis.laxalde@logilab.fr>
date Tue, 28 Jun 2016 11:42:42 +0200
parents f694e20193f2
children 4b6afd1b445a
comparison
equal deleted inserted replaced
29521:83147ff53112 29522:9c37df347485
55 # all table rows have equal height. 55 # all table rows have equal height.
56 annotateline = ' 56 annotateline = '
57 <tr class="parity{parity}{ifeq(node, originalnode, ' thisrev')}"> 57 <tr class="parity{parity}{ifeq(node, originalnode, ' thisrev')}">
58 <td class="annotate"> 58 <td class="annotate">
59 {if(blockhead, 59 {if(blockhead,
60 '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}" 60 '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">
61 title="{node|short}: {desc|escape|firstline}">{author|user}@{rev}</a>', 61 {author|user}@{rev}
62 '')} 62 </a>')}
63 <div class="annotate-info">
64 <div>{node|short}: {desc|escape|firstline}</div>
65 <div>parents: {parents%annotateparent}</div>
66 </div>
63 </td> 67 </td>
64 <td> 68 <td>
65 <a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a> 69 <a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>
66 </td> 70 </td>
67 <td><pre>&nbsp;{line|escape}</pre></td> 71 <td><pre>&nbsp;{line|escape}</pre></td>
68 </tr>' 72 </tr>'
73 annotateparent = '
74 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rev}</a>'
69 difflineplus = '<span class="plusline"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}</span>' 75 difflineplus = '<span class="plusline"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}</span>'
70 difflineminus = '<span class="minusline"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}</span>' 76 difflineminus = '<span class="minusline"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}</span>'
71 difflineat = '<span class="atline"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}</span>' 77 difflineat = '<span class="atline"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}</span>'
72 diffline = '<a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}' 78 diffline = '<a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}'
73 changesetlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>' 79 changesetlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>'