diff options
author | Dan McGee <dan@archlinux.org> | 2013-01-16 07:36:17 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-01-16 07:36:17 +0100 |
commit | 0b930fd92140858f4ad21e593feb057996af9b95 (patch) | |
tree | dcfb6220b0b7d8342b0072492b85407a71caf4f2 /templates/mirrors/mirror_details.html | |
parent | 1f9aef78f39c90191eddf2233c278086a15052de (diff) | |
download | archweb-0b930fd92140858f4ad21e593feb057996af9b95.tar.gz archweb-0b930fd92140858f4ad21e593feb057996af9b95.tar.xz |
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 <dan@archlinux.org>
Diffstat (limited to 'templates/mirrors/mirror_details.html')
-rw-r--r-- | templates/mirrors/mirror_details.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index a56123f..8ea6bbe 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 %}<link rel="stylesheet" type="text/css" href="{% static "flags/fam.css" %}" media="screen, projection" />{% endblock %} + {% block content %} <div class="box"> @@ -90,7 +93,7 @@ <tr class="{% cycle 'odd' 'even' %}"> <td>{% if m_url.protocol.is_download %}<a href="{{ m_url.url }}">{{ m_url.url }}</a>{% else %}{{ m_url.url }}{% endif %}</td> <td>{{ m_url.protocol }}</td> - <td class="country">{% if m_url.country %}<img src="{{ m_url.country.flag }}" alt=""/> {% endif %}{{ m_url.country.name }}</td> + <td class="country">{% country_flag m_url.country %}{{ m_url.country.name }}</td> <td>{{ m_url.has_ipv4|yesno|capfirst }}</td> <td>{{ m_url.has_ipv6|yesno|capfirst }}</td> <td>{{ m_url.last_sync|date:'Y-m-d H:i'|default:'unknown' }}</td> |