aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/self_doc/policy_selection.html.jinja
blob: 4d9b2513de6d14654ed2496fe080c97079dc845b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{#
SPDX-License-Identifier: GPL-3.0-or-later OR CC-BY-SA-4.0

Documentation page describing how Haketilo selects policy to apply to a page.

This file is part of Hydrilla&Haketilo.

Copyright (C) 2022 Wojtek Kosior

Dual licensed under
* GNU General Public License v3.0 or later and
* Creative Commons Attribution Share Alike 4.0 International.

You can choose to use either of these licenses or both.


I, Wojtek Kosior, thereby promise not to sue for violation of this
file's licenses. Although I request that you do not make use of this
code in a proprietary work, I am not going to enforce this in court.
#}
{% extends "doc_base.html.jinja" %}

{% block title %}{{ _('doc.policy_selection.title') }}{% endblock %}

{% block main %}
  {{ big_heading(_('doc.policy_selection.h_big')) }}

  {% call section() %}
    {% call paragraph() %}
      {{ _('doc.policy_selection.intro') }}
      {% call unordered_list() %}
        {% call list_entry() %}
          {{ _('doc.policy_selection.enabled_payload_case') }}
        {% endcall %}
        {% call list_entry() %}
          {{ _('doc.policy_selection.auto_payload_case') }}
        {% endcall %}
        {% call list_entry() %}
          {{ _('doc.policy_selection.ask_payload_case') }}
        {% endcall %}
        {% call list_entry() %}
          {% set fmt = _('doc.policy_selection.block_js_case_{blocking_link}') %}
          {% set link_text = _('doc.policy_selection.html.block_js_case.blocking_link_text') %}
          {% set link = doc_page_link(link_text|e, 'script_blocking') %}
          {{ fmt.format(blocking_link=link)|safe }}
        {% endcall %}
        {% call list_entry() %}
          {{ _('doc.policy_selection.allow_js_case') }}
        {% endcall %}
      {% endcall %}
    {% endcall %}
  {% endcall %}

  {% call section() %}
    {{ medium_heading(_('doc.policy_selection.h_medium.precedence')) }}

    {% call paragraph() %}
      {% set fmt = _('doc.policy_selection.html.precedence_general_{patterns_link}') %}
      {% set link_text = _('doc.policy_selection.precedence_general.patterns_link_text') %}
      {% set link = doc_page_link(link_text|e, 'url_patterns') %}
      {{ fmt.format(patterns_link=link)|safe }}
    {% endcall %}

    {% call paragraph() %}
      {% set fmt = _('doc.policy_selection.html.precedence_nonenabled_{settings_link}') %}
      {% set link_text = _('doc.policy_selection.precedence_nonenabled.settings_link_text') %}
      {% set link = hkt_link(link_text|e, 'home.home') %}
      {{ fmt.format(settings_link=link)|safe }}
    {% endcall %}

    {% call paragraph() %}
      {% set fmt = _('doc.policy_selection.html.precedence_fallback_{settings_link}') %}
      {% set link_text = _('doc.policy_selection.precedence_fallback.settings_link_text') %}
      {% set link = hkt_link(link_text|e, 'home.home') %}
      {{ fmt.format(settings_link=link)|safe }}
    {% endcall %}
  {% endcall %}

  {% call section() %}
    {{ medium_heading(_('doc.policy_selection.special_cases.h_medium')) }}

    {% call paragraph() %}
      {{ _('doc.policy_selection.special_cases.html.exepmt_and_error')|safe }}
    {% endcall %}

    {% call paragraph() %}
      {{ _('doc.policy_selection.special_cases.internal_policies') }}
    {% endcall %}
  {% endcall %}
{% endblock main %}