--- a/helpers.py Mon Feb 09 13:45:06 2009 +0200
+++ b/helpers.py Mon Feb 09 14:07:19 2009 +0200
@@ -18,7 +18,7 @@
Returns a string describing the given timezone
"""
- return str(tz)
+ return self.now().strftime("%Z%z")
def fmt_month (self, date) :
"""
--- a/templates/channel.tmpl Mon Feb 09 13:45:06 2009 +0200
+++ b/templates/channel.tmpl Mon Feb 09 14:07:19 2009 +0200
@@ -51,5 +51,5 @@
${next.body()}
<%def name="footer_right()">
- All times are in <strong>${h.tz_name(prefs['timezone'])}</strong>
+ All times are in <a href="${h.build_url(urls.preferences)}">${h.tz_name(prefs['timezone'])}</a>
</%def>
--- a/templates/index.tmpl Mon Feb 09 13:45:06 2009 +0200
+++ b/templates/index.tmpl Mon Feb 09 14:07:19 2009 +0200
@@ -4,7 +4,7 @@
<ul>
% for channel in channel_list :
- <li><a href="${urls.channel_view.build(req, channel=channel)}">${channel.title}</a></li>
+ <li><a href="${urls.channel.build(req, channel=channel)}">${channel.title}</a></li>
% endfor
</ul>
--- a/templates/preferences.tmpl Mon Feb 09 13:45:06 2009 +0200
+++ b/templates/preferences.tmpl Mon Feb 09 14:07:19 2009 +0200
@@ -13,6 +13,7 @@
<option${' selected="selected"' if tz_name == prefs['timezone'].zone else ''}>${tz_name}</option>
% endfor
</select>
+ <span class="example">(${h.tz_name(prefs['timezone'])})</span>
</p>
<p>