aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorAlberto Bertogli <albertito@blitiri.com.ar>2014-07-29 00:33:43 +0200
committerAlberto Bertogli <albertito@blitiri.com.ar>2014-07-29 00:46:50 +0200
commit47d500715a85879f6e3c6a0c27d2fa849f97efdc (patch)
treeb0e5253385450bab8a135eb57e8ad296e0a04644 /views
parenteb7cadd64faee9e654a9aee992d21d7bceb716ea (diff)
downloadgit-arr-fork-47d500715a85879f6e3c6a0c27d2fa849f97efdc.zip
views/tree.html: Fix lambda syntax0.13
Some versions of bottle.py don't deal well with the "if" inside the lambda, so work around it by just using comparison and simplifying the function. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
Diffstat (limited to 'views')
-rw-r--r--views/tree.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/tree.html b/views/tree.html
index aad7402..5edacb8 100644
--- a/views/tree.html
+++ b/views/tree.html
@@ -36,7 +36,7 @@
</h3>
<table class="nice ls">
-% key_func = lambda (t, n, s): (0 if t == 'tree' else 1, n.raw)
+% key_func = lambda (t, n, s): (t != 'tree', n.raw)
% for type, name, size in sorted(tree.ls(dirname.raw), key = key_func):
<tr class="{{type}}">
% if type == "blob":