Download:
child 11:9cc3a588140c
parent 9:c9ffedb92be0
10:c297fea207d4
Anton Shestakov <av6@dwimlabs.net>, Tue, 11 Oct 2016 02:28:13 +0800
annotate: fix upstream issue5398, but in a different way Annotate box is now positioned as if it had "top: 0;" style, plus a larger left margin.

1 файлов изменено, 2 вставок(+), 2 удалений(-) [+]
templates/kit/map file | annotate | diff | comparison | revisions
--- a/templates/kit/map Fri Oct 07 20:45:07 2016 +0800
+++ b/templates/kit/map Tue Oct 11 02:28:13 2016 +0800
@@ -98,8 +98,7 @@
annotateline = '
<tr id="{lineid}" {ifeq(node, originalnode, ' class="kit-this-rev"')}>
<td class="uk-visible-hover uk-position-relative uk-text-top kit-block-parity{blockparity}">
- {if(blockhead, '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">{rev}</a>')}
- <div class="uk-hidden uk-position-absolute uk-position-z-index uk-panel uk-panel-box uk-margin-left uk-text-nowrap">
+ <div class="uk-hidden uk-position-absolute uk-position-z-index uk-panel uk-panel-box uk-margin-large-left uk-text-nowrap">
<div>
<a class="kit-monospace" href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{rev}:{node|short}</a>
{desc|escape|firstline}
@@ -109,6 +108,7 @@
<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">line</a> |
<a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a>
</div>
+ {if(blockhead, '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">{rev}</a>')}
</td>
<td class="kit-monospace kit-annotate-line"><a href="#{lineid}" class="kit-line-number" data-line-number="{linenumber}"></a>{line|escape}</td>
</tr>'