mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-19 05:58:34 +02:00
Amavis fixes.
This commit is contained in:
@@ -7,7 +7,6 @@ from django.db.models import Q
|
||||
|
||||
from modoboa.extensions.admin.models import Domain
|
||||
from modoboa.lib.dbutils import db_type
|
||||
from modoboa.lib.webutils import static_url
|
||||
|
||||
from .models import Quarantine, Msgrcpt, Maddr
|
||||
|
||||
|
||||
@@ -294,7 +294,7 @@ Quarantine.prototype = {
|
||||
simple_ajax_form_post(evt, {
|
||||
formid: "learning_recipient_form",
|
||||
reload_on_success: false,
|
||||
success_cb: $this.action_cb
|
||||
success_cb: $.proxy($this.action_cb, $this)
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
<td width="25px" name="rstatus">
|
||||
{% if email.status == 'R' %}
|
||||
<img src="{% static 'pics/release.png' %}" />
|
||||
{% else if email.status == 'S' %}
|
||||
{% elif email.status == 'S' %}
|
||||
<span class="fa fa-thumbs-ip"></span>
|
||||
{% else if email.status == 'H' %}
|
||||
{% elif email.status == 'H' %}
|
||||
<span class="fa fa-thumbs-down"></span>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% load lib_tags i18n %}
|
||||
<div class="row">
|
||||
|
||||
<div class="col-xs-3">
|
||||
<div class="col-xs-4">
|
||||
<div class="btn-group" title="{% trans 'Select' %}">
|
||||
<a class="btn btn-default"><input type="checkbox" id="selectall" /></a>
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
@@ -45,7 +45,7 @@
|
||||
{% include "common/email_searchbar.html" with extraopts=extraopts %}
|
||||
</div>
|
||||
|
||||
<div class="col-sm-5">
|
||||
<div class="col-sm-4">
|
||||
<div class="btn-group">
|
||||
<div id="filters_bar" class="navbar-nav navbar-right">
|
||||
<span class="label label-default">{% trans "Display" %}</span>
|
||||
|
||||
@@ -43,7 +43,7 @@ def viewm_menu(user, mail_id, rcpt):
|
||||
if manual_learning_enabled(user):
|
||||
entries.insert(2, {
|
||||
"name": "process",
|
||||
"img": "icon-cog",
|
||||
"img": "fa fa-cog",
|
||||
"menu": [
|
||||
{"name": "mark-as-spam",
|
||||
"label": _("Mark as spam"),
|
||||
|
||||
@@ -393,7 +393,7 @@ def learning_recipient(request):
|
||||
return render(request, "common/generic_modal_form.html", {
|
||||
"title": _("Select a database"),
|
||||
"formid": "learning_recipient_form",
|
||||
"action": reverse("modoboa.extensions.amavis.views.learning_recipient"),
|
||||
"action": reverse("amavis:learning_recipient_set"),
|
||||
"action_classes": "submit",
|
||||
"action_label": _("Validate"),
|
||||
"form": form
|
||||
|
||||
Reference in New Issue
Block a user