From f9d71346bae039fd0b2855a2e7f0d6987f324d0a Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Wed, 6 Mar 2019 00:02:46 -0800 Subject: [PATCH] Fixed HTML template spacing. --- bin/fail2ban_digest | 86 +++++++++++++++++++++++---------------------- 1 file changed, 44 insertions(+), 42 deletions(-) diff --git a/bin/fail2ban_digest b/bin/fail2ban_digest index dcf67b7..622d7f2 100755 --- a/bin/fail2ban_digest +++ b/bin/fail2ban_digest @@ -48,60 +48,62 @@ Fail2ban Digest default_html_template = Template(''' - + th { + background-color: #dddddd; + } + -

Hi,

-

This is a digest email of banned IPs since ${creation_date} and ${date_now}:

- - - - - - +

Hi,

+

This is a digest email of banned IPs since ${creation_date} and ${date_now}:

+
#IPsWhen
+ + + + + ${digest} -
#IPsWhen
-

Regards,

-

Fail2Ban Digest

+ +

Regards,

+

Fail2Ban Digest

''') -html_tr_template = Template(''' - ${count} - ${ip} - ${events} - +html_tr_template = Template(''' + ${count} + ${ip} + ${events} + ''') -html_error_template = Template(''' - ${error_msg} - ''') +html_error_template = Template(''' + ${error_msg} + +''') + class Ban: def __init__(self, ip, events): self.ip = ip