summaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/web_ui/templates/index.html.jinja
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-10-10 16:45:41 +0200
committerWojtek Kosior <koszko@koszko.org>2022-10-10 16:45:41 +0200
commit28e2064c86cfb9f35312417192f5b1395b16917c (patch)
tree6c2846ab180b4d2ad6f4c1153d296c8b5c972ee0 /src/hydrilla/proxy/web_ui/templates/index.html.jinja
parentb880bdc779b800ebde810279d1cf5b9e530000de (diff)
downloadhaketilo-hydrilla-28e2064c86cfb9f35312417192f5b1395b16917c.tar.gz
haketilo-hydrilla-28e2064c86cfb9f35312417192f5b1395b16917c.zip
[proxy] when web UI's home page is accessed through plain HTTP, show link to TLS certs page and tell the user to install mitmproxy cert
Diffstat (limited to 'src/hydrilla/proxy/web_ui/templates/index.html.jinja')
-rw-r--r--src/hydrilla/proxy/web_ui/templates/index.html.jinja16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/hydrilla/proxy/web_ui/templates/index.html.jinja b/src/hydrilla/proxy/web_ui/templates/index.html.jinja
index f05cf4a..e42f5e9 100644
--- a/src/hydrilla/proxy/web_ui/templates/index.html.jinja
+++ b/src/hydrilla/proxy/web_ui/templates/index.html.jinja
@@ -37,12 +37,24 @@ code in a proprietary work, I am not going to enforce this in court.
{{ _('web_ui.home.heading.about_haketilo') }}
</h4>
- <p>
- {{ _('web_ui.home.haketilo_is_blah_blah') }}
+ <p class="has-colored-links">
+ {{ _('web_ui.home.html.haketilo_is_blah_blah')|safe }}
</p>
<div class="horizontal-separator"></div>
+ {% if request.url.startswith('http://') %}
+ <h4>
+ {{ _('web_ui.home.heading.configuring_browser_for_haketilo') }}
+ </h4>
+
+ <p class="has-colored-links">
+ {{ _('web_ui.home.html.to_add_certs_do_xyz')|safe }}
+ </p>
+
+ <div class="horizontal-separator"></div>
+ {% endif %}
+
<h4>
{{ _('web_ui.home.heading.options') }}
</h4>