aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/policies/rule.py
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-10-31 22:19:18 +0100
committerWojtek Kosior <koszko@koszko.org>2022-10-31 22:19:18 +0100
commit9b01180ec981d6d0ffd7b0e84a3ddbb0a2cf1ecc (patch)
tree66ec7089fca89fcaa4f769cc74cf12e783968ea9 /src/hydrilla/proxy/policies/rule.py
parentf1638c63de7c27c2fdccb55f4b540c8fb79d3762 (diff)
downloadhaketilo-hydrilla-master.tar.gz
haketilo-hydrilla-master.zip
[builder][server][proxy] complete internationalization and add polish translationHEADmaster
Diffstat (limited to 'src/hydrilla/proxy/policies/rule.py')
-rw-r--r--src/hydrilla/proxy/policies/rule.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hydrilla/proxy/policies/rule.py b/src/hydrilla/proxy/policies/rule.py
index 1f39295..e318a7f 100644
--- a/src/hydrilla/proxy/policies/rule.py
+++ b/src/hydrilla/proxy/policies/rule.py
@@ -69,7 +69,8 @@ class RuleAllowPolicy(AllowPolicy):
def make_info_page(self, http_info: http_messages.FullHTTPInfo) \
-> t.Optional[str]:
- return base.get_info_template('js_rule_allowed_info.html.jinja').render(
+ template = self._get_info_template('js_rule_allowed_info.html.jinja')
+ return template.render(
url = http_info.request_info.url.orig_url,
pattern = self.pattern.orig_url
)
@@ -81,7 +82,8 @@ class RuleBlockPolicy(BlockPolicy):
def make_info_page(self, http_info: http_messages.FullHTTPInfo) \
-> t.Optional[str]:
- return base.get_info_template('js_rule_blocked_info.html.jinja').render(
+ template = self._get_info_template('js_rule_blocked_info.html.jinja')
+ return template.render(
url = http_info.request_info.url.orig_url,
pattern = self.pattern.orig_url
)