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>
|
2021-04-21 00:46:14 +02:00
|
|
|
<meta charset="UTF-8" />
|
2017-02-28 04:44:31 +01:00
|
|
|
{% block title %}
|
|
|
|
{% if user_profile and user_profile.realm.name %}
|
2020-08-14 19:51:11 +02:00
|
|
|
<title>{{user_profile.realm.name}} - Zulip</title>
|
2017-02-28 04:44:31 +01:00
|
|
|
{% else %}
|
2020-08-14 19:51:11 +02:00
|
|
|
{% if OPEN_GRAPH_TITLE %}
|
|
|
|
<title>{{ OPEN_GRAPH_TITLE }}</title>
|
|
|
|
{% else %}
|
|
|
|
<title>Zulip</title>
|
|
|
|
{% endif %}
|
2017-02-28 04:44:31 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
2021-04-21 00:46:14 +02:00
|
|
|
<link id="favicon" rel="icon" href="/static/images/favicon.svg?v=4" />
|
|
|
|
<link rel="alternate icon" href="/static/images/favicon.png?v=4" />
|
2019-05-17 06:08:52 +02:00
|
|
|
{% block meta_viewport %}
|
2021-04-21 00:46:14 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
2019-05-17 06:08:52 +02:00
|
|
|
{% 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 %}
|
2021-03-17 03:11:19 +01:00
|
|
|
{% for filename in webpack_entry(entrypoint) -%}
|
|
|
|
{% if filename.endswith(".css") -%}
|
|
|
|
<link href="{{ filename }}" rel="stylesheet" {% if csp_nonce %}nonce="{{ csp_nonce }}"{% endif %} />
|
|
|
|
{% elif filename.endswith(".js") -%}
|
|
|
|
<script src="{{ filename }}" defer {% if csp_nonce %}nonce="{{ csp_nonce }}"{% endif %}></script>
|
|
|
|
{% endif -%}
|
|
|
|
{% endfor %}
|
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
|
|
|
|
2021-11-26 09:02:57 +01:00
|
|
|
<body {% if color_scheme == 1 %} class="color-scheme-automatic" {% elif color_scheme == 2 %} class="dark-theme" {% 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") %}
|