From 9c1669a7371e838af4b4ae58b2fdd9c79591ce00 Mon Sep 17 00:00:00 2001 From: Evangelos Foutras Date: Mon, 22 May 2017 11:37:32 +0300 Subject: Remove invalid filter call from mirrors/status_table.html The filter was passed an undefined variable which caused the template to be rendered as empty. Since the other table columns default to an empty string instead of "unknown", simply remove the default:"unknown" filter. Also correct a closing %} tag. --- templates/mirrors/status_table.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/mirrors/status_table.html b/templates/mirrors/status_table.html index 3f8cd2d9..1effe5a2 100644 --- a/templates/mirrors/status_table.html +++ b/templates/mirrors/status_table.html @@ -14,12 +14,12 @@ - {% for m_url in urls %} + {% for m_url in urls %} {{ m_url.url }} {{ m_url.protocol }} {% country_flag m_url.country %}{{ m_url.country.name }} {{ m_url.completion_pct|percentage:1 }} - {{ m_url.delay|duration|default:unknown }} + {{ m_url.delay|duration }} {{ m_url.duration_avg|floatvalue:2 }} {{ m_url.duration_stddev|floatvalue:2 }} {{ m_url.score|floatvalue:1|default:'∞' }} -- cgit v1.2.3-55-g3dc8