summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-04-27 09:02:18 -0500
committerDan McGee <dan@archlinux.org>2012-04-27 09:12:26 -0500
commit15c94b2061de4ba618af977279fe2575db2ac0a5 (patch)
tree6c9de82b7ecee441429d65dc2e00d0397eecdf55
parentdc94eade03022ce3a5286f5e781576321a5f1653 (diff)
downloadarchweb-15c94b2061de4ba618af977279fe2575db2ac0a5.tar.gz
archweb-15c94b2061de4ba618af977279fe2575db2ac0a5.zip
Make sorting by time on clocks page more predictable
This is a little bit of a hack but works well. Add the timezone name to the end of the sort so those in the same time zone end up next to each other. For timezones like CEST that have many different specifiers, it makes more sense to group them by 'Europe/Berlin', 'Europe/Paris', etc. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--sitestatic/archweb.css4
-rw-r--r--templates/devel/clock.html2
2 files changed, 5 insertions, 1 deletions
diff --git a/sitestatic/archweb.css b/sitestatic/archweb.css
index 3b638e20..cafae777 100644
--- a/sitestatic/archweb.css
+++ b/sitestatic/archweb.css
@@ -85,6 +85,10 @@ input[type=submit] {
clear: both;
}
+.hide {
+ display: none;
+}
+
hr {
border: none;
border-top: 1px solid #888;
diff --git a/templates/devel/clock.html b/templates/devel/clock.html
index 61e67c32..bdb7341d 100644
--- a/templates/devel/clock.html
+++ b/templates/devel/clock.html
@@ -34,7 +34,7 @@
<td>{{ dev.userprofile.alias }}</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>
+ <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>
{% endfor %}
</tbody>