diff options
author | Dan McGee <dan@archlinux.org> | 2012-04-25 01:32:57 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-04-25 01:51:58 -0500 |
commit | 640e0f58645a7fd07f3c6185d9583b4d218e2468 (patch) | |
tree | 46323cbe3549b7d60a7b88eacb702522982b2a27 /templates/mirrors/status_table.html | |
parent | 20675141c340ea3d2d6d8305f8ba0950d3bf974c (diff) |
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_table.html')
-rw-r--r-- | templates/mirrors/status_table.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/mirrors/status_table.html b/templates/mirrors/status_table.html index bd70115c..3a20c068 100644 --- a/templates/mirrors/status_table.html +++ b/templates/mirrors/status_table.html @@ -18,7 +18,7 @@ {% spaceless %}<tr class="{% cycle 'odd' 'even' %}"> <td>{{ m_url.url }}</td> <td>{{ m_url.protocol }}</td> - <td>{{ m_url.real_country }}</td> + <td>{% if m_url.real_country %}<img src="{{ m_url.real_country.flag }}"/> {% endif %}{{ m_url.real_country.name }}</td> <td>{{ m_url.last_sync|date:'Y-m-d H:i'|default:'unknown' }}</td> <td>{{ m_url.completion_pct|percentage:1 }}</td> <td>{{ m_url.delay|duration|default:'unknown' }}</td> |