From e46dac8e03101778fcc8ea7d1951cdf9bcb149d4 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Wed, 28 Dec 2016 18:07:19 +0700 Subject: [PATCH] Use Nunjucks "or" syntax over "if else" --- views/listing.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/listing.html b/views/listing.html index abeb307..5531944 100644 --- a/views/listing.html +++ b/views/listing.html @@ -20,7 +20,7 @@ {% for node in nodes %} {{ req.query.p * 10 - 10 + loop.index if req.query.p else loop.index }} - {{ node.nickname }} + {{ node.nickname }} {{ node | bandwidth }} {{ node | uptime }} {{ node.country_name }}