From 104aec272669e496b8c6892d3437fb8412960595 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 26 Apr 2012 12:47:52 -0500 Subject: 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 --- templates/devel/clock.html | 2 +- templates/public/developer_list.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') 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 @@

Developer World Clocks

{{ dev.get_full_name }} {{ dev.username }} {{ dev.userprofile.alias }} - {{ dev.userprofile.location }} + {% if dev.userprofile.country %}{{ dev.userprofile.country.name }} {% endif %}{{ dev.userprofile.location }} {{ dev.userprofile.time_zone }} {{ utc_now|timezone:dev.userprofile.time_zone|date:"Y-m-d H:i T" }} 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 @@ {% if prof.yob %}{{ prof.yob }}{% endif %} Location: - {{ prof.location }} + {% if dev.userprofile.country %}{{ dev.userprofile.country.name }} {% endif %}{{ prof.location }} Languages: {{ prof.languages }} -- cgit v1.2.3-54-g00ecf