1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-24 06:59:52 +01:00
pywb/pywb/templates/banner.html
Ilya Kreymer 3ca765f847 add autoescapding disable to banner.html
update CHANGES
bump version to 2.6.0b2
2021-06-17 17:40:15 -07:00

30 lines
1002 B
HTML

{% if not env.pywb_proxy_magic or config.proxy.enable_banner | default(true) %}
{% autoescape false %}
<script>
window.banner_info = {
is_gmt: true,
liveMsg: decodeURIComponent("{{ _Q('Live on') }}"),
calendarAlt: decodeURIComponent("{{ _Q('Calendar icon') }}"),
calendarLabel: decodeURIComponent("{{ _Q('View All Captures') }}"),
choiceLabel: decodeURIComponent("{{ _Q('Language:') }}"),
loadingLabel: decodeURIComponent("{{ _Q('Loading...') }}"),
logoAlt: decodeURIComponent("{{ _Q('Logo') }}"),
locale: "{{ env.pywb_lang | default('en') }}",
curr_locale: "{{ env.pywb_lang }}",
locales: {{ locales }},
locale_prefixes: {{ get_locale_prefixes() | tojson }},
prefix: "{{ wb_prefix }}",
staticPrefix: "{{ static_prefix }}"
};
</script>
<!-- default banner, create through js -->
<script src='{{ static_prefix }}/default_banner.js'> </script>
<link rel='stylesheet' href='{{ static_prefix }}/default_banner.css'/>
{% endautoescape %}
{% endif %}