diff options
author | Evangelos Foutras <evangelos@foutrelis.com> | 2017-05-22 11:37:32 +0300 |
---|---|---|
committer | Evangelos Foutras <evangelos@foutrelis.com> | 2017-05-22 12:09:47 +0300 |
commit | 9c1669a7371e838af4b4ae58b2fdd9c79591ce00 (patch) | |
tree | 073e8d1b0156e3949900fc69e79b3e1882ad8314 | |
parent | 053473545b686682c8b71acddcb023375617b151 (diff) | |
download | archweb-9c1669a7371e838af4b4ae58b2fdd9c79591ce00.tar.gz archweb-9c1669a7371e838af4b4ae58b2fdd9c79591ce00.zip |
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.
-rw-r--r-- | templates/mirrors/status_table.html | 4 |
1 files 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 @@ </tr> </thead> <tbody> - {% for m_url in urls %}<tr class="{% cycle 'odd' 'even' }}"> + {% for m_url in urls %}<tr class="{% cycle 'odd' 'even' %}"> <td>{{ m_url.url }}</td> <td>{{ m_url.protocol }}</td> <td class="country">{% country_flag m_url.country %}{{ m_url.country.name }}</td> <td>{{ m_url.completion_pct|percentage:1 }}</td> - <td>{{ m_url.delay|duration|default:unknown }}</td> + <td>{{ m_url.delay|duration }}</td> <td>{{ m_url.duration_avg|floatvalue:2 }}</td> <td>{{ m_url.duration_stddev|floatvalue:2 }}</td> <td>{{ m_url.score|floatvalue:1|default:'∞' }}</td> |