diff --git a/management/mail_log.py b/management/mail_log.py index 8b68f956..d7bc8408 100755 --- a/management/mail_log.py +++ b/management/mail_log.py @@ -42,8 +42,9 @@ def scan_mail_log(logger, env): for date, sender, message in collector["rejected-mail"][k]: logger.print_line(k + "\t" + str(date) + "\t" + sender + "\t" + message) - logger.add_heading("Other") - logger.print_block("Unrecognized services in the log: " + ", ".join(collector["other-services"])) + if len(collector["other-services"]) > 0: + logger.add_heading("Other") + logger.print_block("Unrecognized services in the log: " + ", ".join(collector["other-services"])) def scan_mail_log_line(line, collector): m = re.match(r"(\S+ \d+ \d+:\d+:\d+) (\S+) (\S+?)(\[\d+\])?: (.*)", line) diff --git a/management/templates/custom-dns.html b/management/templates/custom-dns.html index 431465d2..8f0a0217 100644 --- a/management/templates/custom-dns.html +++ b/management/templates/custom-dns.html @@ -23,9 +23,9 @@ -
+ @@ -76,6 +76,7 @@ function show_custom_dns() { { }, function(data) { $('#secondarydnsHostname').val(data.hostname ? data.hostname : ''); + $('#secondarydns-clear-instructions').toggle(data.hostname != null); }); } @@ -89,6 +90,7 @@ function do_set_secondary_dns() { function(data) { if (data == "") return; // nothing updated show_modal_error("Secondary DNS", $("
").text(data));
+      $('#secondarydns-clear-instructions').slideDown();
     },
     function(err) {
       show_modal_error("Secondary DNS", $("
").text(err));
diff --git a/management/templates/index.html b/management/templates/index.html
index d0c0597b..efe80bb1 100644
--- a/management/templates/index.html
+++ b/management/templates/index.html
@@ -81,7 +81,7 @@