summaryrefslogtreecommitdiffstats
path: root/templates/devel/clock.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/devel/clock.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/devel/clock.html')
-rw-r--r--templates/devel/clock.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/devel/clock.html b/templates/devel/clock.html
index 02e4274..83fbb70 100644
--- a/templates/devel/clock.html
+++ b/templates/devel/clock.html
@@ -1,9 +1,12 @@
{% extends "base.html" %}
{% load static from staticfiles %}
+{% load flags %}
{% load tz %}
{% block title %}Arch Linux - Developer World Clocks{% endblock %}
+{% block head %}<link rel="stylesheet" type="text/css" href="{% static "flags/fam.css" %}" media="screen, projection" />{% endblock %}
+
{% block content %}
<div id="dev-clocks-box" class="box">
<h2>Developer World Clocks</h2>
@@ -45,7 +48,7 @@
<td>{{ dev.username }}</td>
<td>{{ dev.userprofile.alias }}</td>
<td>{{ dev.last_action }}</td>
- <td>{% if dev.userprofile.country %}<img src="{{ dev.userprofile.country.flag }}" alt="{{ dev.userprofile.country.name }}"/> {% endif %}{{ dev.userprofile.location }}</td>
+ <td>{% country_flag dev.userprofile.country %}{{ dev.userprofile.location }}</td>
<td>{{ dev.userprofile.time_zone }}</td>
<td>{{ utc_now|timezone:dev.userprofile.time_zone|date:"Y-m-d H:i T" }}<span class="hide"> {{ dev.userprofile.time_zone }}</span></td>
</tr>