summaryrefslogtreecommitdiffstats
path: root/templates/mirrors/status.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-16 07:36:17 +0100
committerDan McGee <dan@archlinux.org>2013-01-16 07:36:17 +0100
commit0b930fd92140858f4ad21e593feb057996af9b95 (patch)
treedcfb6220b0b7d8342b0072492b85407a71caf4f2 /templates/mirrors/status.html
parent1f9aef78f39c90191eddf2233c278086a15052de (diff)
downloadarchweb-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/status.html')
-rw-r--r--templates/mirrors/status.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html
index ec2ae56..8d32d3f 100644
--- a/templates/mirrors/status.html
+++ b/templates/mirrors/status.html
@@ -1,9 +1,12 @@
{% extends "base.html" %}
{% load static from staticfiles %}
{% load mirror_status %}
+{% load flags %}
{% block title %}Arch Linux - Mirror Status{% if tier != None %} - Tier {{ tier }}{% endif %}{% endblock %}
+{% block head %}<link rel="stylesheet" type="text/css" href="{% static "flags/fam.css" %}" media="screen, projection" />{% endblock %}
+
{% block content %}
<div id="mirrorstatus" class="box">
<h2>Mirror Status{% if tier != None %} - Tier {{ tier }}{% endif %}</h2>
@@ -88,7 +91,7 @@
{% spaceless %}<tr class="{% cycle 'odd' 'even' %}">
<td>{{ log.url__url }}</td>
<td>{{ log.url__protocol__protocol }}</td>
- <td class="country">{% if log.country %}<img src="{{ log.country.flag }}" alt=""/> {% endif %}{{ log.country.name }}</td>
+ <td class="country">{% country_flag log.country %}{{ log.country.name }}</td>
<td class="wrap">{{ log.error|linebreaksbr }}</td>
<td>{{ log.last_occurred|date:'Y-m-d H:i' }}</td>
<td>{{ log.error_count }}</td>