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