commit:     5e1952bf1d469fdfa23402ff60e9525c693a4194
Author:     Max Magorsch <arzano <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  7 20:17:32 2020 +0000
Commit:     Max Magorsch <arzano <AT> gentoo <DOT> org>
CommitDate: Sun Jun  7 20:17:32 2020 +0000
URL:        
https://gitweb.gentoo.org/proj/gentoo-mirrorstats.git/commit/?id=5e1952bf

Show the tls version for https mirrors only

Signed-off-by: Max Magorsch <arzano <AT> gentoo.org>

 html/stats.jinja2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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>

Reply via email to