Applying the same graphical styles than the normal view.

see #206
This commit is contained in:
Antoine Nguyen
2012-04-10 13:44:05 +02:00
parent 3d4a637a05
commit b4e24dc731
@@ -44,13 +44,15 @@ def viewm_menu(user, mail_id, rcpt):
def viewm_menu_simple(user, mail_id, rcpt, secret_id=""):
entries = [
{"name" : "release",
"img" : "icon-ok",
"img" : "icon-white icon-ok",
"class" : "btn-success",
"url" : reverse(amavis_quarantine.views.release, args=[mail_id]) \
+ ("?rcpt=%s" % rcpt \
+ (("&secret_id=%s" % secret_id) if secret_id != "" else "")),
"label" : _("Release")},
{"name" : "delete",
"img" : "icon-remove",
"img" : "icon-white icon-trash",
"class" : "btn-danger",
"url" : reverse(amavis_quarantine.views.delete, args=[mail_id]) \
+ "?rcpt=%s" % rcpt \
+ ("&secret_id=%s" % secret_id if secret_id != "" else ""),