Files
talk/src/core/server/app/views/client.html
T
Wyatt Johnson 04c56b3fb5 [CORL-406] Tenant Locale Selection (#2450)
* feat: added preload config

* feat: support changing locale

* fix: name case

* fix: removed unused code

* feat: added translations for default reactions

* fix: do not translate icon

* fix: shorter i18n keys
2019-09-05 17:02:06 +00:00

58 lines
1.6 KiB
HTML

{% import "macros.html" as macros %}
{% extends "templates/base.html" %}
{% block title %}Coral{% endblock %}
{% block meta %}
{# Insert the link preload tags here. #}
{% if entrypoint.css %}
{% for asset in entrypoint.css %}
{{ macros.preload(asset.src, "style", prefix = staticURI) }}
{% endfor %}
{% endif %}
{% if enableCustomCSS and tenant and tenant.customCSSURL %}
{{ macros.preload(tenant.customCSSURL, "style", crossorigin = true) }}
{% endif %}
{% if entrypoint.js %}
{% for asset in entrypoint.js %}
{{ macros.preload(asset.src, "script", prefix = staticURI) }}
{% endfor %}
{% endif %}
{# Insert the staticURI via the configuration object during insertion. #}
<script type="application/json" id="config">
{{ config | dump | safe }}
</script>
{% endblock %}
{# Include all the styles from the entrypoint #}
{% if entrypoint.css or enableCustomCSS %}
{% block css %}
{% if entrypoint.css %}
{% for asset in entrypoint.css %}
{{ macros.css(asset.src, asset.integrity, staticURI) }}
{% endfor %}
{% endif %}
{# Custom CSS is included after the CSS block so that its overrides will apply #}
{% if enableCustomCSS %}
{% if tenant and tenant.customCSSURL %}
{{ macros.css(tenant.customCSSURL) }}
{% endif %}
{% endif %}
{% endblock %}
{% endif %}
{% block html %}
<div id="app"></div>
{% endblock %}
{# Include all the scripts from the entrypoint #}
{% if entrypoint.js %}
{% block js %}
{% for asset in entrypoint.js %}
{{ macros.js(asset.src, asset.integrity, staticURI) }}
{% endfor %}
{% endblock %}
{% endif %}