Mercurial > hg
diff tests/test-highlight.t @ 32996:1c97df5e3b46
hgweb: plug followlines action in annotate view
Add the followlines.js script and corresponding parameters as data attribute
on <tbody class="sourcelines"> element.
Extend CSS rules so that they also match the DOM structure of annotate view.
As previously, only address paper and gitweb styles (other styles do not have
followlines at all).
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Wed, 21 Jun 2017 17:17:17 +0200 |
parents | 7c82bfd55d47 |
children | 32331f54930c |
line wrap: on
line diff
--- a/tests/test-highlight.t Wed Jun 21 17:07:51 2017 +0200 +++ b/tests/test-highlight.t Wed Jun 21 17:17:17 2017 +0200 @@ -292,7 +292,10 @@ <th class="line"> line source</th> </tr> </thead> - <tbody class="stripes2"> + <tbody class="stripes2 sourcelines" + data-logurl="/log/tip/primes.py" + data-selectabletag="TR" + data-ishead="1"> <tr id="l1" class="thisrev"> <td class="annotate parity0"> @@ -829,6 +832,8 @@ </div> </div> + <script type="text/javascript" src="/static/followlines.js"></script> + </body>