This commit is contained in:
tonio
2010-04-22 21:36:28 +02:00
parent 1f894c8952
commit 4624eef6eb
8 changed files with 71 additions and 70 deletions
+7 -3
View File
@@ -100,9 +100,13 @@ class IMAPheader(object):
return value
ndate = datetime(*(tmp)[:7])
now = datetime.now()
if now - ndate > timedelta(7):
return ndate.strftime("%d.%m.%Y %H:%M")
return ndate.strftime("%a %H:%M")
try:
if now - ndate > timedelta(7):
return ndate.strftime("%d.%m.%Y %H:%M")
return ndate.strftime("%a %H:%M")
except ValueError:
return value
@staticmethod
def parse_subject(value, **kwargs):
+1
View File
@@ -221,6 +221,7 @@ tr.selected {
}
register_callback("folder", function(resp) {
wm_updatelisting(resp);
searchbox_init();
if (navparams.has("order")) {
src = navparams.get("order").charAt(0) == "-" ? "down_arrow.png" : "up_arrow.png";
th = $$("th[id=" + navparams.get("order").substring(1) + "]");
+3 -2
View File
@@ -94,7 +94,8 @@ def listing_menu(selection, folder, perms):
"img" : "/static/pics/clear.png",
"label" : _("Empty trash")}
]
return render_to_string("main/menu.html",
menu = render_to_string("main/menu.html",
{"selection" : selection, "entries" : entries,
"perms" : perms})
searchbar = render_to_string("common/email_searchbar.html", {})
return menu + searchbar