Download:
child 51:7a01d0f93806
parent 49:98a080b1eb9a
50:c074bc38b66a
Anton Shestakov <av6@dwimlabs.net>, Sun, 07 Feb 2016 22:55:52 +0800
viewer: reverse X axis (so that prev/next page links make sense)

2 файлов изменено, 2 вставок(+), 1 удалений(-) [+]
templates/fancy.html file | annotate | diff | comparison | revisions
viewer.py file | annotate | diff | comparison | revisions
--- a/templates/fancy.html Sun Feb 07 22:32:30 2016 +0800
+++ b/templates/fancy.html Sun Feb 07 22:55:52 2016 +0800
@@ -52,6 +52,7 @@
size: {height: 500},
tooltip: {format: {title: function(x) { return x; }}},
data: JSON.parse(document.getElementById('data').firstChild.nodeValue)
+ axis: {x: {tick: {format: function(x) { return -x; }}}},
});
</script>
</body>
--- a/viewer.py Sun Feb 07 22:32:30 2016 +0800
+++ b/viewer.py Sun Feb 07 22:55:52 2016 +0800
@@ -248,7 +248,7 @@
results, _ = self.getresults(changesets, marks=marks, colors=False)
json = []
for cset in changesets:
- item = {'rev': cset['rev']}
+ item = {'rev': -cset['rev']}
for mark in marks:
values = results.get(cset['node'], {}).get(mark, None)
if values is not None: