From db6713dfda34d1e15bb8d8646c6f48231d4f2683 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 8 Jun 2020 14:59:41 +0000 Subject: [PATCH] location: Drop old warniing about blocked resources Signed-off-by: Michael Tremer --- src/templates/location/lookup.html | 14 -------------- src/web/location.py | 6 +----- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/src/templates/location/lookup.html b/src/templates/location/lookup.html index 5a7c5b16..3aeb3ca7 100644 --- a/src/templates/location/lookup.html +++ b/src/templates/location/lookup.html @@ -3,20 +3,6 @@ {% block title %}{{ _("Location of %s") % address }}{% end block %} {% block main %} - {% if is_blacklisted %} -
-
{{ _("This IP address is blacklisted!") }}
- -

- {{ _("Access to some resources on this website might be limited because this IP address is a known abuser.") }} -

- - - {{ _("See Full Blacklist Status") }} - -
- {% end %} -
diff --git a/src/web/location.py b/src/web/location.py index 9d874e3f..a15bc701 100644 --- a/src/web/location.py +++ b/src/web/location.py @@ -18,11 +18,7 @@ class LookupHandler(base.BaseHandler): # Lookup address address = util.Address(self.backend, address) - # Lookup blacklists - is_blacklisted = await address.is_blacklisted() - - self.render("location/lookup.html", - address=address, is_blacklisted=is_blacklisted) + self.render("location/lookup.html", address=address) class BlacklistsHandler(base.BaseHandler): -- 2.39.2