From 12bf4c1b1e7df2d934b9dfde8629137dedeea99f Mon Sep 17 00:00:00 2001
From: Dan McGee
Date: Sat, 18 Feb 2012 19:17:00 -0600
Subject: Add a smart protocol filter to mirrorlist generator
This will only list FTP mirrors for a given country if there are no HTTP
mirrors available, since FTP must die.
Signed-off-by: Dan McGee
---
templates/mirrors/mirrorlist_generate.html | 1 +
1 file changed, 1 insertion(+)
(limited to 'templates/mirrors')
diff --git a/templates/mirrors/mirrorlist_generate.html b/templates/mirrors/mirrorlist_generate.html
index e6f5e28c..34bda63d 100644
--- a/templates/mirrors/mirrorlist_generate.html
+++ b/templates/mirrors/mirrorlist_generate.html
@@ -23,6 +23,7 @@
All mirrors, Smart protocols: this link only includes FTP mirrors if an HTTP mirror is not available in a given country.
Customized by country mirrorlist
--
cgit v1.2.3-2-g168b
From 3b0b9012353d5ffda564998cab58f986770361be Mon Sep 17 00:00:00 2001
From: Dan McGee
Date: Sun, 13 May 2012 20:14:16 -0500
Subject: Use linebreaksbr filter on log error message text
If we get a multi-line message in, we should show line breaks at the
appropriate places.
Signed-off-by: Dan McGee
---
templates/mirrors/status.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'templates/mirrors')
diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html
index 8ee1d46e..34896c07 100644
--- a/templates/mirrors/status.html
+++ b/templates/mirrors/status.html
@@ -89,7 +89,7 @@
{{ log.url__url }}
{{ log.url__protocol__protocol }}
{% if log.country %} {% endif %}{{ log.country.name }}
-
{{ log.error }}
+
{{ log.error|linebreaksbr }}
{{ log.last_occurred|date:'Y-m-d H:i' }}
{{ log.error_count }}
--
cgit v1.2.3-2-g168b
From 2f7d770b261b3428bcff366ba6ff4fa631dd980a Mon Sep 17 00:00:00 2001
From: Dan McGee
Date: Sun, 13 May 2012 20:15:00 -0500
Subject: Add rsync support to mirrorcheck and other small improvements
The main changes in this patch implement rsync:// protocol checking
support by calling the rsync binary, requested in FS#29878. We track and
log much of the same things as we already do for FTP and HTTP URLs-
check time, last sync, total check duration, etc.
Also added in this patch is a configurable timeout value which defaults
to the previous hardcoded value of 10 seconds; this can be passed as an
option to the mirrorcheck command.
Signed-off-by: Dan McGee
---
templates/mirrors/status.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'templates/mirrors')
diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html
index 34896c07..2c350f56 100644
--- a/templates/mirrors/status.html
+++ b/templates/mirrors/status.html
@@ -16,8 +16,8 @@
has synced recently. This page contains several pieces of information about
each mirror.
-
Mirror URL: Mirrors are checked on a per-URL basis. If
- both FTP and HTTP access are provided, both will be listed here.
+
Mirror URL: Mirrors are checked on a per-URL basis. All
+ available URLs and protocols for each known mirror are listed.
Completion %: The number of mirror checks that have
successfully connected and disconnected from the given URL. If this is
below 100%, the mirror may be unreliable.
--
cgit v1.2.3-2-g168b
From ae1c526ffbe908322f0dd8d8805360b81ab22b0f Mon Sep 17 00:00:00 2001
From: Dan McGee
Date: Sun, 13 May 2012 20:35:50 -0500
Subject: Add ability to restrict status report to single tier
This should make it easier to catch errors in our Tier 1 mirrors.
Signed-off-by: Dan McGee
---
templates/mirrors/status.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'templates/mirrors')
diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html
index 2c350f56..472e9501 100644
--- a/templates/mirrors/status.html
+++ b/templates/mirrors/status.html
@@ -2,11 +2,11 @@
{% load static from staticfiles %}
{% load mirror_status %}
-{% block title %}Arch Linux - Mirror Status{% endblock %}
+{% block title %}Arch Linux - Mirror Status{% if tier != None %} - Tier {{ tier }}{% endif %}{% endblock %}
{% block content %}
This page reports the status of all known, public, and active Arch Linux
mirrors. All data on this page reflects the status of the mirrors within
the last {{ cutoff|hours }}. All listed times are UTC. The check script runs
--
cgit v1.2.3-2-g168b
From 8383a071608329c7683f7a710030ce945bd20b4d Mon Sep 17 00:00:00 2001
From: Dan McGee
Date: Sun, 8 Jul 2012 23:30:48 -0500
Subject: Add a new jquery_tablesorter CDN template tag
And use it everywhere we were including the file before. This should
make updating the version a heck of a lot easier.
Signed-off-by: Dan McGee
---
templates/mirrors/mirror_details.html | 3 +--
templates/mirrors/mirrors.html | 3 +--
templates/mirrors/status.html | 3 +--
3 files changed, 3 insertions(+), 6 deletions(-)
(limited to 'templates/mirrors')
diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html
index edeab5dc..18175845 100644
--- a/templates/mirrors/mirror_details.html
+++ b/templates/mirrors/mirror_details.html
@@ -105,8 +105,7 @@
-{% load cdn %}{% jquery %}
-
+{% load cdn %}{% jquery %}{% jquery_tablesorter %}
+{% load cdn %}{% jquery %}{% jquery_tablesorter %}
+{% load cdn %}{% jquery %}{% jquery_tablesorter %}
+
{% endblock %}
--
cgit v1.2.3-2-g168b
From 92837c93acc66056391dd0b98515b89f8fc49691 Mon Sep 17 00:00:00 2001
From: Dan McGee
Date: Mon, 12 Nov 2012 21:37:08 -0600
Subject: Prefetch the available protocols on the mirror overview page
Otherwise we are doing one query per mirror, which at this point is over
100 separate queries.
Signed-off-by: Dan McGee
---
templates/mirrors/mirrors.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'templates/mirrors')
diff --git a/templates/mirrors/mirrors.html b/templates/mirrors/mirrors.html
index 0950520d..c83d0d43 100644
--- a/templates/mirrors/mirrors.html
+++ b/templates/mirrors/mirrors.html
@@ -29,7 +29,7 @@
{{ mirror.get_tier_display }}
{% if mirror.country %} {% endif %}{{ mirror.country.name }}
{{ mirror.isos|yesno|capfirst }}
-
{{ mirror.supported_protocols|join:", " }}
+
{{ mirror.protocols|join:", " }}
{% if user.is_authenticated %}
{{ mirror.public|yesno|capfirst }}
{{ mirror.active|yesno|capfirst }}
--
cgit v1.2.3-2-g168b
From 59f5b6ed5524300cc0373ad934b251e220c66da9 Mon Sep 17 00:00:00 2001
From: Dan McGee
Date: Tue, 13 Nov 2012 09:51:11 -0600
Subject: Mirror details style and JS cleanup
Signed-off-by: Dan McGee
---
templates/mirrors/mirror_details.html | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
(limited to 'templates/mirrors')
diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html
index 32ef8a7a..884187b9 100644
--- a/templates/mirrors/mirror_details.html
+++ b/templates/mirrors/mirror_details.html
@@ -5,12 +5,11 @@
{% block title %}Arch Linux - {{ mirror.name }} - Mirror Details{% endblock %}
{% block content %}
-
-
{% if m_url.real_country %} {% endif %}{{ m_url.real_country.name }}
+
{% if m_url.country %} {% endif %}{{ m_url.country.name }}
{{ m_url.completion_pct|percentage:1 }}
{{ m_url.delay|duration|default:'unknown' }}
{{ m_url.duration_avg|floatformat:2 }}
--
cgit v1.2.3-2-g168b
From 0b930fd92140858f4ad21e593feb057996af9b95 Mon Sep 17 00:00:00 2001
From: Dan McGee
Date: Wed, 16 Jan 2013 00:36:17 -0600
Subject: Convert all usages of flag icons to new sprite
This uses a new template tag to avoid repeating construction of the
necessary HTML element all over the place. The site should look exactly
as it did before, except now you don't have to download 20+ images to
see some pages.
Signed-off-by: Dan McGee
---
templates/mirrors/mirror_details.html | 5 ++++-
templates/mirrors/status.html | 5 ++++-
templates/mirrors/status_table.html | 3 ++-
3 files changed, 10 insertions(+), 3 deletions(-)
(limited to 'templates/mirrors')
diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html
index a56123ff..8ea6bbec 100644
--- a/templates/mirrors/mirror_details.html
+++ b/templates/mirrors/mirror_details.html
@@ -1,9 +1,12 @@
{% extends "base.html" %}
{% load static from staticfiles %}
{% load mirror_status %}
+{% load flags %}
{% block title %}Arch Linux - {{ mirror.name }} - Mirror Details{% endblock %}
+{% block head %}{% endblock %}
+
{% block content %}