1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00
pywb/pywb/templates/banner.html
Ilya Kreymer 790487ca15 docs: add new UI docs:
- add ui-overview as UI toc page
- refactor ui-customization to top-level customizations page
- add template-guide for in-depth template reference
- add new-vue-ui page for docs on new ui, with images
- fix adding logo to old ui, add to docs
2022-11-21 12:46:09 -05:00

50 lines
1.4 KiB
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 }}",
logoImg: "{{ ui.logo }}"
};
</script>
{% if is_framed or not ui.vue_timeline_banner %}
<!-- default banner, create through js -->
<link rel='stylesheet' href='{{ static_prefix }}/default_banner.css'/>
<script src='{{ static_prefix }}/default_banner.js'> </script>
{% else %}
<link rel='stylesheet' href='{{ static_prefix }}/vue_banner.css'/>
<script src="{{ static_prefix }}/vue/vueui.js"></script>
<script>
VueUI.main("{{ static_prefix }}", "{{ url }}", "{{ wb_prefix }}", "{{ timestamp }}");
</script>
{% if ui.vue_timeline_banner %}
<div id="app" style="width: 100%; height: 200px"></div>
{% endif %}
{% endif %}
{% endautoescape %}
{% endif %}