summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-06-07 20:17:32 +0000
committerMax Magorsch <arzano@gentoo.org>2020-06-07 20:17:32 +0000
commit5e1952bf1d469fdfa23402ff60e9525c693a4194 (patch)
tree202fa94c0aae1353058d03fb8bd7a9ed9113a6f0
parentCheck TLS version and display it in the table (diff)
downloadgentoo-mirrorstats-5e1952bf1d469fdfa23402ff60e9525c693a4194.tar.gz
gentoo-mirrorstats-5e1952bf1d469fdfa23402ff60e9525c693a4194.tar.bz2
gentoo-mirrorstats-5e1952bf1d469fdfa23402ff60e9525c693a4194.zip
Show the tls version for https mirrors only
Signed-off-by: Max Magorsch <arzano@gentoo.org>
-rw-r--r--html/stats.jinja22
1 files changed, 1 insertions, 1 deletions
diff --git a/html/stats.jinja2 b/html/stats.jinja2
index 02b50ff..98d8474 100644
--- a/html/stats.jinja2
+++ b/html/stats.jinja2
@@ -114,7 +114,7 @@
<td>{{ stat['Protocol'] }}</td>
<td>{{ stat['StateHistory'] }}</td>
<td>{{ stat['ProbeHistory'] }}</td>
- <td>{{ mirrors[mirror]['TLSVersion'] }}</td>
+ <td>{% if stat['Protocol'] == "https" %}{{ mirrors[mirror]['TLSVersion'] }}{% endif %}</td>
<td style="text-align: right;">
{% if stat['StatusLastProbe'] == "ok" %}
<span class="badge badge-success">OK</span>