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">
|
2017-03-09 02:35:17 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
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
|
|
|
|
2017-02-28 04:44:31 +01:00
|
|
|
{% block page_params %}
|
|
|
|
{# blueslip needs page_params.debug_mode. Set it to false by default. #}
|
2018-07-06 23:31:53 +02:00
|
|
|
<script>
|
2017-02-28 04:44:31 +01:00
|
|
|
var page_params = {debug_mode: false};
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|
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 %}
|
2018-04-22 06:26:16 +02:00
|
|
|
{{ render_bundle('common', attrs='nonce="%s"' % (csp_nonce)) }}
|
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-03-09 00:44:11 +01:00
|
|
|
<body {% if night_mode %}class="night-mode"{% endif %}>
|
2017-02-28 04:44:31 +01:00
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
|
|
|
</body>
|
2012-08-28 21:06:20 +02:00
|
|
|
|
|
|
|
</html>
|