mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Add a back button on page mailbox view mail and quarantine view mail
This commit is contained in:
@@ -11,6 +11,11 @@ register = template.Library()
|
||||
@register.simple_tag
|
||||
def viewm_menu(mail_id, rcpt):
|
||||
entries = [
|
||||
{"name": "back",
|
||||
"url": "javascript:history.go(-2);",
|
||||
"img": "glyphicon glyphicon-arrow-left",
|
||||
"class": "btn-primary",
|
||||
"label": _("Back")},
|
||||
{"name": "release",
|
||||
"img": "glyphicon glyphicon-ok",
|
||||
"class": "btn-success",
|
||||
@@ -24,6 +29,7 @@ def viewm_menu(mail_id, rcpt):
|
||||
+ ("?rcpt=%s" % rcpt if rcpt else ""),
|
||||
"label": _("Delete")},
|
||||
{"name": "headers",
|
||||
"class": "btn-default",
|
||||
"url": reverse('modoboa.extensions.amavis.views.viewheaders', args=[mail_id]),
|
||||
"label": _("View full headers")},
|
||||
]
|
||||
|
||||
@@ -14,6 +14,11 @@ register = template.Library()
|
||||
@register.simple_tag
|
||||
def viewmail_menu(selection, folder, user, mail_id=None):
|
||||
entries = [
|
||||
{"name": "back",
|
||||
"url": "javascript:history.go(-2);",
|
||||
"img": "glyphicon glyphicon-arrow-left",
|
||||
"class": "btn-primary",
|
||||
"label": _("Back")},
|
||||
{"name": "reply",
|
||||
"url": "action=reply&mbox=%s&mailid=%s" % (folder, mail_id),
|
||||
"img": "glyphicon glyphicon-share",
|
||||
@@ -64,7 +69,7 @@ def compose_menu(selection, backurl, user):
|
||||
{"name": "back",
|
||||
"url": "javascript:history.go(-2);",
|
||||
"img": "glyphicon glyphicon-arrow-left",
|
||||
"class": "btn-default",
|
||||
"class": "btn-primary",
|
||||
"label": _("Back")},
|
||||
{"name": "sendmail",
|
||||
"url": "",
|
||||
@@ -105,7 +110,7 @@ def listmailbox_menu(selection, folder, user):
|
||||
},
|
||||
{"name": "actions",
|
||||
"label": _("Actions"),
|
||||
"class": "btn",
|
||||
"class": "btn btn-default",
|
||||
"menu": [
|
||||
{"name": "compress",
|
||||
"label": _("Compress folder"),
|
||||
|
||||
Reference in New Issue
Block a user