2012-08-28 21:06:20 +02:00
|
|
|
<!DOCTYPE html>
|
2016-05-13 12:44:03 +02:00
|
|
|
<html lang='{{LANGUAGE_CODE}}'>
|
2012-08-28 21:06:20 +02:00
|
|
|
|
2017-02-28 04:44:31 +01:00
|
|
|
{# Base template for the whole site. #}
|
2012-10-16 06:03:29 +02:00
|
|
|
|
2017-02-28 04:44:31 +01:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
{% block title %}
|
|
|
|
{% if user_profile and user_profile.realm.name %}
|
2017-02-21 20:44:43 +01:00
|
|
|
<title>{{user_profile.realm.name}} - Zulip</title>
|
2017-02-28 04:44:31 +01:00
|
|
|
{% else %}
|
|
|
|
<title>Zulip</title>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
<link href="/static/favicon.ico?v=2" rel="shortcut icon">
|
2019-05-17 06:08:52 +02:00
|
|
|
{% block meta_viewport %}
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
{% endblock %}
|
2018-05-01 20:59:24 +02:00
|
|
|
{% if not user_profile %}
|
|
|
|
{% include 'zerver/meta_tags.html' %}
|
|
|
|
{% endif %}
|
2013-05-17 23:32:08 +02:00
|
|
|
|
2019-09-14 02:44:46 +02:00
|
|
|
{% macro bundle(name) %}
|
2019-09-14 02:44:53 +02:00
|
|
|
{{ render_bundle(name, 'css', attrs='nonce="%s"' % (csp_nonce,) if csp_nonce else '') }}
|
|
|
|
{{ render_bundle(name, 'js', attrs='defer nonce="%s"' % (csp_nonce,) if csp_nonce else 'defer') }}
|
2019-09-14 02:44:46 +02:00
|
|
|
{% endmacro %}
|
|
|
|
|
2018-05-28 08:09:49 +02:00
|
|
|
<!-- This is a temporary block to enable webpack transition
|
|
|
|
This allows pages requiring common files via webpack to override
|
|
|
|
this block -->
|
|
|
|
{% block commonjs %}
|
2019-09-14 02:44:46 +02:00
|
|
|
{{ bundle('common') }}
|
2018-05-28 08:09:49 +02:00
|
|
|
{% endblock %}
|
2017-02-28 04:44:31 +01:00
|
|
|
{% block customhead %}
|
|
|
|
{% endblock %}
|
2017-10-18 01:00:47 +02:00
|
|
|
|
2018-05-31 02:35:33 +02:00
|
|
|
{# this is required because we want to put a custom head in
|
2017-10-18 01:00:47 +02:00
|
|
|
`zerver/portico.html` that isn't overwritten like the
|
2018-05-31 02:35:33 +02:00
|
|
|
`customhead` #}
|
2017-10-18 01:00:47 +02:00
|
|
|
{% block porticocustomhead %}
|
|
|
|
{% endblock %}
|
2017-02-28 04:44:31 +01:00
|
|
|
</head>
|
2012-08-28 21:06:20 +02:00
|
|
|
|
2019-09-19 02:47:12 +02:00
|
|
|
<body {% if night_mode %}class="night-mode"{% endif %}>
|
2017-02-28 04:44:31 +01:00
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
2019-09-19 02:47:12 +02:00
|
|
|
|
|
|
|
<div hidden id="page-params" data-params='{{ page_params|default({"debug_mode": false})|tojson }}'></div>
|
2017-02-28 04:44:31 +01:00
|
|
|
</body>
|
2012-08-28 21:06:20 +02:00
|
|
|
|
|
|
|
</html>
|