comparison tests/test-hgweb-symrev.t @ 35530:acd8a2454b47

monoblue: make actual changeset entries have backgrounds on /graph This patch removes a separate container for backgrounds only and puts backgrounds on changeset elements themselves. This makes it so that JS code doesn't need to create background elements separately anymore. There's a bit of manipulating positions of elements: every changeset entry has a "fg" element that gets a higher z-index than <canvas> element. This prioritizes text information, so that even if it somehow gets close to the graph drawn on <canvas> (which has z-index of 5), it'll still be on top of it. This can happen if commit message has a long first line and browser window is narrow, for example. 'parity' is added to each entry because there's no stripes2 class in monoblue, only in paper.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 05 Jan 2018 19:08:00 +0800
parents 5afe0ca59b07
children 6c2264732dc5
comparison
equal deleted inserted replaced
35529:5afe0ca59b07 35530:acd8a2454b47
729 <a class="title" href="/rev/43c799df6e75?style=monoblue"> 729 <a class="title" href="/rev/43c799df6e75?style=monoblue">
730 <a href="/log/43c799df6e75?style=monoblue">(0)</a> <a href="/log/tip?style=monoblue">tip</a> 730 <a href="/log/43c799df6e75?style=monoblue">(0)</a> <a href="/log/tip?style=monoblue">tip</a>
731 731
732 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=monoblue' | egrep $REVLINKS 732 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=monoblue' | egrep $REVLINKS
733 <li><a href="/file/tip?style=monoblue">files</a></li> 733 <li><a href="/file/tip?style=monoblue">files</a></li>
734 <a href="/rev/9d8c40cba617?style=monoblue">third</a> 734 <a href="/rev/9d8c40cba617?style=monoblue">third</a>
735 <a href="/rev/a7c1559b7bba?style=monoblue">second</a> 735 <a href="/rev/a7c1559b7bba?style=monoblue">second</a>
736 <a href="/rev/43c799df6e75?style=monoblue">first</a> 736 <a href="/rev/43c799df6e75?style=monoblue">first</a>
737 <a href="/graph/tip?revcount=30&style=monoblue">less</a> 737 <a href="/graph/tip?revcount=30&style=monoblue">less</a>
738 <a href="/graph/tip?revcount=120&style=monoblue">more</a> 738 <a href="/graph/tip?revcount=120&style=monoblue">more</a>
739 | <a href="/graph/43c799df6e75?style=monoblue">(0)</a> <a href="/graph/tip?style=monoblue">tip</a> 739 | <a href="/graph/43c799df6e75?style=monoblue">(0)</a> <a href="/graph/tip?style=monoblue">tip</a>
740 740
741 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'tags?style=monoblue' | egrep $REVLINKS 741 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'tags?style=monoblue' | egrep $REVLINKS
811 <a class="title" href="/rev/43c799df6e75?style=monoblue"> 811 <a class="title" href="/rev/43c799df6e75?style=monoblue">
812 <a href="/log/43c799df6e75?style=monoblue">(0)</a> <a href="/log/tip?style=monoblue">tip</a> 812 <a href="/log/43c799df6e75?style=monoblue">(0)</a> <a href="/log/tip?style=monoblue">tip</a>
813 813
814 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=monoblue' | egrep $REVLINKS 814 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=monoblue' | egrep $REVLINKS
815 <li><a href="/file/xyzzy?style=monoblue">files</a></li> 815 <li><a href="/file/xyzzy?style=monoblue">files</a></li>
816 <a href="/rev/a7c1559b7bba?style=monoblue">second</a> 816 <a href="/rev/a7c1559b7bba?style=monoblue">second</a>
817 <a href="/rev/43c799df6e75?style=monoblue">first</a> 817 <a href="/rev/43c799df6e75?style=monoblue">first</a>
818 <a href="/graph/xyzzy?revcount=30&style=monoblue">less</a> 818 <a href="/graph/xyzzy?revcount=30&style=monoblue">less</a>
819 <a href="/graph/xyzzy?revcount=120&style=monoblue">more</a> 819 <a href="/graph/xyzzy?revcount=120&style=monoblue">more</a>
820 | <a href="/graph/43c799df6e75?style=monoblue">(0)</a> <a href="/graph/tip?style=monoblue">tip</a> 820 | <a href="/graph/43c799df6e75?style=monoblue">(0)</a> <a href="/graph/tip?style=monoblue">tip</a>
821 821
822 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy?style=monoblue' | egrep $REVLINKS 822 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy?style=monoblue' | egrep $REVLINKS