summaryrefslogtreecommitdiffstats
path: root/templates/mirrors/status.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-04-25 08:32:57 +0200
committerDan McGee <dan@archlinux.org>2012-04-25 08:51:58 +0200
commit640e0f58645a7fd07f3c6185d9583b4d218e2468 (patch)
tree46323cbe3549b7d60a7b88eacb702522982b2a27 /templates/mirrors/status.html
parent20675141c340ea3d2d6d8305f8ba0950d3bf974c (diff)
downloadarchweb-640e0f58645a7fd07f3c6185d9583b4d218e2468.tar.gz
archweb-640e0f58645a7fd07f3c6185d9583b4d218e2468.tar.xz
Finish django countries implementation
* Add a migration to drop the old countries field. * Update all templates/views/utility methods to point at the new country field and dereference it as necessary. * Add the flags images to a few views where it makes sense. * Cleanup the download page layout quite a bit. * Bump the mirror status JSON version to 3; add country_code attribute. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/mirrors/status.html')
-rw-r--r--templates/mirrors/status.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html
index 225572e..8f81444 100644
--- a/templates/mirrors/status.html
+++ b/templates/mirrors/status.html
@@ -92,7 +92,7 @@
{% spaceless %}<tr class="{% cycle 'odd' 'even' %}">
<td>{{ log.url__url }}</td>
<td>{{ log.url__protocol__protocol }}</td>
- <td>{{ log.country }}</td>
+ <td>{% if log.country %}<img src="{{ log.country.flag }}"/> {% endif %}{{ log.country.name }}</td>
<td>{{ log.error }}</td>
<td>{{ log.last_occurred|date:'Y-m-d H:i' }}</td>
<td>{{ log.error_count }}</td>