mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
* banner: add banner and localization improvements from ukwa branch: - show 'view all captures' link if not live - optional logo - loc options, if available - banner options set via window.banner_info in banner.html localization support: - add init_loc() to templateview - loc available if config options set - tests: add tests for loading localized messages, override .gitignore to allow test messages.mo
28 lines
959 B
HTML
28 lines
959 B
HTML
{% if not env.pywb_proxy_magic or config.proxy.enable_banner | default(true) %}
|
|
<!-- default banner, create through js -->
|
|
<script src='{{ static_prefix }}/default_banner.js'> </script>
|
|
<link rel='stylesheet' href='{{ static_prefix }}/default_banner.css'/>
|
|
|
|
<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>
|
|
|
|
{% endif %}
|