summaryrefslogtreecommitdiff
path: root/templates/devel/clock.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-04-26 12:47:52 -0500
committerDan McGee <dan@archlinux.org>2012-04-26 13:25:15 -0500
commit104aec272669e496b8c6892d3437fb8412960595 (patch)
tree647d2ef808a28b29be42d309768f32d4f531ec18 /templates/devel/clock.html
parent22fc394e3610908f302df4c81e23c9ef7876c621 (diff)
Add migration to auto-populate developer countries, display flags
Add a quick and dirty migration to derive country info from the developer-provided timezone, and display the flag next to the location if we have it available on the clocks and developer profiles pages. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/devel/clock.html')
-rw-r--r--templates/devel/clock.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/devel/clock.html b/templates/devel/clock.html
index 5bb092f6..61e67c32 100644
--- a/templates/devel/clock.html
+++ b/templates/devel/clock.html
@@ -32,7 +32,7 @@
<td><a href="mailto:{{ dev.email }}">{{ dev.get_full_name }}</a></td>
<td>{{ dev.username }}</td>
<td>{{ dev.userprofile.alias }}</td>
- <td>{{ dev.userprofile.location }}</td>
+ <td>{% if dev.userprofile.country %}<img src="{{ dev.userprofile.country.flag }}" alt="{{ dev.userprofile.country.name }}"/> {% endif %}{{ 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" }}</td>
</tr>