zulip/templates/zerver/base.html
Anders Kaseorg 76f25bca59 templates: Reenable mobile zooming on non-app pages.
Commit db45d220a8 (#3996) disabled
mobile zooming on all pages, with the reasoning that focusing an input
may automatically zoom the page and break content.  I’m not sure
whether that was a good reason, but at most it only applies to the app
page.  Reenable zooming on all other pages like the portico and
documentation to improve their accessibility.

(Note: the other common reason to disable zooming, which was that
mobile browsers once added a 300ms tap delay to recognize double-tap
zoom gestures, has been obsolete since 2014:
https://developers.google.com/web/updates/2013/12/300ms-tap-delay-gone-away)

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-05-17 11:30:30 -07:00

51 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html lang='{{LANGUAGE_CODE}}'>
{# Base template for the whole site. #}
<head>
<meta charset="UTF-8">
{% block title %}
{% if user_profile and user_profile.realm.name %}
<title>{{user_profile.realm.name}} - Zulip</title>
{% else %}
<title>Zulip</title>
{% endif %}
{% endblock %}
<link href="/static/favicon.ico?v=2" rel="shortcut icon">
{% block meta_viewport %}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% endblock %}
{% if not user_profile %}
{% include 'zerver/meta_tags.html' %}
{% endif %}
{% block page_params %}
{# blueslip needs page_params.debug_mode. Set it to false by default. #}
<script>
var page_params = {debug_mode: false};
</script>
{% endblock %}
<!-- This is a temporary block to enable webpack transition
This allows pages requiring common files via webpack to override
this block -->
{% block commonjs %}
{{ render_bundle('common', attrs='nonce="%s"' % (csp_nonce,)) }}
{% endblock %}
{% block customhead %}
{% endblock %}
{# this is required because we want to put a custom head in
`zerver/portico.html` that isn't overwritten like the
`customhead` #}
{% block porticocustomhead %}
{% endblock %}
</head>
<body {% if night_mode %}class="night-mode"{% endif %}>
{% block content %}
{% endblock %}
</body>
</html>