aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/policies/info_pages_templates/js_rule_info.html.jinja
blob: 1c0c662989d97579325855215bce4d65a45dbf1c (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
{#
SPDX-License-Identifier: GPL-3.0-or-later OR CC-BY-SA-4.0

Proxy info page with information about page with JS blocked or allowed by a
rule - template for firther extending.

This file is part of Hydrilla&Haketilo.

Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org>

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 "info_base.html.jinja" %}

{% macro format_html_with_rule_url(msg_fmt) %}
  {% set url_fmt = 'https://hkt.mitm.it/rules/viewbypattern?pattern={pattern}' %}
  {{ msg_fmt.format(url=url_fmt.format(pattern=pattern)|e)|safe }}
{% endmacro %}

{% block main_rest %}
  <div class="horizontal-separator"></div>

  {% call label(_('info.rule.matched_pattern_label')) %}
    {{ hkt_doc_link('url_patterns') }}
  {% endcall %}

  <p>
    {{ pattern }}
  </p>
{% endblock %}