root: update remaining paths for static files

This commit is contained in:
Jens Langhammer
2020-11-15 22:46:14 +01:00
parent 7be680cbe5
commit c0bfd32d39
7 changed files with 14 additions and 14 deletions

View File

@ -31,5 +31,5 @@ passbook:
footer_links:
- name: Documentation
href: https://passbook.beryju.org/docs/
# - name: test
# href: https://test
- name: passbook Website
href: https://passbook.beryju.org/

View File

@ -27,7 +27,7 @@ class BaseEvaluator:
def __init__(self):
# update passbook/policies/expression/templates/policy/expression/form.html
# update docs/policies/expression/index.md
# update website/docs/policies/expression.md
self._globals = {
"regex_match": BaseEvaluator.expr_filter_regex_match,
"regex_replace": BaseEvaluator.expr_filter_regex_replace,

View File

@ -32,7 +32,7 @@ class PolicyEvaluator(BaseEvaluator):
def set_policy_request(self, request: PolicyRequest):
"""Update context based on policy request (if http request is given, update that too)"""
# update docs/policies/expression/index.md
# update website/docs/policies/expression.md
self._context["pb_is_sso_flow"] = request.context.get(PLAN_CONTEXT_SSO, False)
if request.http_request:
self.set_http_request(request.http_request)
@ -41,7 +41,7 @@ class PolicyEvaluator(BaseEvaluator):
def set_http_request(self, request: HttpRequest):
"""Update context based on http request"""
# update docs/policies/expression/index.md
# update website/docs/policies/expression.md
self._context["pb_client_ip"] = ip_address(
get_client_ip(request) or "255.255.255.255"
)