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-10-23 07:46:34 +02:00
|
|
|
{% block webpack %}
|
|
|
|
{{ render_entrypoint(entrypoint, 'css', attrs='nonce="%s"' % (csp_nonce,) if csp_nonce else '') }}
|
|
|
|
{{ render_entrypoint(entrypoint, 'js', attrs='defer nonce="%s"' % (csp_nonce,) if csp_nonce else 'defer') }}
|
2017-02-28 04:44:31 +01:00
|
|
|
{% endblock %}
|
2017-10-18 01:00:47 +02:00
|
|
|
|
2019-10-23 07:46:34 +02:00
|
|
|
{% block customhead %}
|
2017-10-18 01:00:47 +02:00
|
|
|
{% endblock %}
|
2017-02-28 04:44:31 +01:00
|
|
|
</head>
|
2012-08-28 21:06:20 +02:00
|
|
|
|
2020-05-16 13:13:59 +02:00
|
|
|
<body {% if color_scheme == 1 %} class="color-scheme-automatic" {% elif color_scheme == 2 %} class="night-mode" {% endif %}>
|
2017-02-28 04:44:31 +01:00
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
2019-09-19 02:47:12 +02:00
|
|
|
|
2020-04-04 01:47:18 +02:00
|
|
|
{% set all_page_params = default_page_params.copy() %}
|
2020-04-18 14:12:53 +02:00
|
|
|
{% set _ = all_page_params.update(page_params|default({})) %}
|
2020-04-04 01:47:18 +02:00
|
|
|
<div hidden id="page-params" data-params='{{ all_page_params|tojson }}'></div>
|
2017-02-28 04:44:31 +01:00
|
|
|
</body>
|
2012-08-28 21:06:20 +02:00
|
|
|
|
|
|
|
</html>
|
2019-10-23 07:46:34 +02:00
|
|
|
|
|
|
|
{% set entrypoint = entrypoint|default("common") %}
|