mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-03 12:14:12 +01:00
Misc.
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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) + "]");
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user