From 945337177d35a5c038e29b6594e1251f26d42156 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 29 Mar 2014 11:56:29 -0500 Subject: Add last_modified column to mirrors This will make it easier in the future to clear out inactive mirrors that haven't been touched in a while. Signed-off-by: Dan McGee --- templates/mirrors/mirror_details.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'templates') diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index 8a652563..7e1ab9f8 100644 --- a/templates/mirrors/mirror_details.html +++ b/templates/mirrors/mirror_details.html @@ -45,6 +45,10 @@

Mirror Details: {{ mirror.name }}

Created: {{ mirror.created }} + + Last Modified: + {{ mirror.last_modified }} + Rsync IPs: {{mirror.rsync_ips.all|join:', '}} -- cgit v1.2.3-54-g00ecf From 35fc1b458ce4b549607f1ab0c846ba5998da0183 Mon Sep 17 00:00:00 2001 From: Jakub Klinkovský Date: Tue, 1 Jul 2014 13:03:06 +0200 Subject: update URLs to Arch wiki MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub Klinkovský Signed-off-by: Dan McGee --- templates/public/download.html | 2 +- templates/public/index.html | 10 +++++----- urls.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'templates') diff --git a/templates/public/download.html b/templates/public/download.html index 00db9bed..967d8a6e 100644 --- a/templates/public/download.html +++ b/templates/public/download.html @@ -28,7 +28,7 @@

Release Info

{% if release.version %}
  • Current Release: {{ release.version }}
  • {% endif %} {% if release.kernel_version %}
  • Included Kernel: {{ release.kernel_version }}
  • {% endif %} {% if release.torrent_data %}
  • ISO Size: {{ release.torrent.file_length|filesizeformat }}
  • {% endif %} -
  • Installation Guide
  • +
  • Installation Guide
  • Resources:
    • Documentation @@ -123,11 +123,11 @@

      Community

      @@ -180,7 +180,7 @@

      More Resources

      • Signing Master Keys
      • -
      • Press Coverage
      • Logos & Artwork
      • News Archives
      • diff --git a/urls.py b/urls.py index 79838ce3..46c8ace6 100644 --- a/urls.py +++ b/urls.py @@ -111,7 +111,7 @@ ('^todolists/$', '/todo/'), ('^docs/en/guide/install/arch-install-guide.html', - 'https://wiki.archlinux.org/index.php/Installation_Guide'), + 'https://wiki.archlinux.org/index.php/Installation_guide'), ('^docs/en/', 'https://wiki.archlinux.org/'), ('^docs/', -- cgit v1.2.3-54-g00ecf From 9335d3330b2cee8065cbd46eb71a7ebc50b4b037 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 1 Sep 2014 15:53:23 -0500 Subject: Save some space, (secs) -> (s) Signed-off-by: Dan McGee --- templates/mirrors/mirror_details.html | 4 ++-- templates/mirrors/status_table.html | 4 ++-- templates/mirrors/url_details.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'templates') diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index 7e1ab9f8..2ff41828 100644 --- a/templates/mirrors/mirror_details.html +++ b/templates/mirrors/mirror_details.html @@ -105,8 +105,8 @@

        Available URLs

        Last Sync Completion % μ Delay (hh:mm) - μ Duration (secs) - σ Duration (secs) + μ Duration (s) + σ Duration (s) Score Details diff --git a/templates/mirrors/status_table.html b/templates/mirrors/status_table.html index 00b9c1df..278256ae 100644 --- a/templates/mirrors/status_table.html +++ b/templates/mirrors/status_table.html @@ -8,8 +8,8 @@ Country Completion % μ Delay (hh:mm) - μ Duration (secs) - σ Duration (secs) + μ Duration (s) + σ Duration (s) Mirror Score diff --git a/templates/mirrors/url_details.html b/templates/mirrors/url_details.html index 54960a0d..201e1895 100644 --- a/templates/mirrors/url_details.html +++ b/templates/mirrors/url_details.html @@ -63,7 +63,7 @@

        Check Logs

        Check IP Last Sync Delay (hh:mm) - Duration (secs) + Duration (s) Success? Error Message -- cgit v1.2.3-54-g00ecf From a8ceba34299cca271ddf433bf7618aa98e56cc36 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 1 Sep 2014 16:16:44 -0500 Subject: Add details link to mirror status page Signed-off-by: Dan McGee --- mirrors/models.py | 13 ++++++++----- templates/mirrors/status.html | 4 +++- templates/mirrors/status_table.html | 2 ++ templates/mirrors/url_details.html | 4 ++++ 4 files changed, 17 insertions(+), 6 deletions(-) (limited to 'templates') diff --git a/mirrors/models.py b/mirrors/models.py index 41132229..e360801b 100644 --- a/mirrors/models.py +++ b/mirrors/models.py @@ -75,6 +75,12 @@ class MirrorUrl(models.Model): created = models.DateTimeField(editable=False) active = models.BooleanField(default=True) + class Meta: + verbose_name = 'mirror URL' + + def __unicode__(self): + return self.url + def address_families(self): hostname = urlparse(self.url).hostname info = socket.getaddrinfo(hostname, None, 0, socket.SOCK_STREAM) @@ -101,11 +107,8 @@ def clean(self): self.has_ipv4 = False self.has_ipv6 = False - def __unicode__(self): - return self.url - - class Meta: - verbose_name = 'mirror URL' + def get_absolute_url(self): + return '/mirrors/%s/%d/' % (self.mirror.name, self.pk) class MirrorRsync(models.Model): diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html index e97ad4ba..24408be7 100644 --- a/templates/mirrors/status.html +++ b/templates/mirrors/status.html @@ -80,7 +80,9 @@

        Mirror Syncing Error Log