summaryrefslogtreecommitdiff
path: root/templates
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
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')
-rw-r--r--templates/devel/clock.html2
-rw-r--r--templates/public/developer_list.html2
2 files changed, 2 insertions, 2 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>
diff --git a/templates/public/developer_list.html b/templates/public/developer_list.html
index 83c62952..37b35b82 100644
--- a/templates/public/developer_list.html
+++ b/templates/public/developer_list.html
@@ -51,7 +51,7 @@
<td>{% if prof.yob %}{{ prof.yob }}{% endif %}</td>
</tr><tr>
<th>Location:</th>
- <td>{{ prof.location }}</td>
+ <td>{% if dev.userprofile.country %}<img src="{{ dev.userprofile.country.flag }}" alt="{{ dev.userprofile.country.name }}"/> {% endif %}{{ prof.location }}</td>
</tr><tr>
<th>Languages:</th>
<td>{{ prof.languages }}</td>