mirror of
https://github.com/zulip/zulip.git
synced 2026-06-30 21:11:04 +08:00
Adds HTML title elements to templates that extend either `base.html`, `portico.html` or `portico_signup.html`, and that are not website portico landing pages that will use the `PAGE_TITLE` variable to set the HTML title element (see following commit in series). Also, updates some templates for missing translation tags. As a general rule, we want the title element (and page content) translated. Exceptions that are updated in this commit are templates used in the development environment, analytics templates that are used by staff and templates related to Zephyr.
45 lines
924 B
HTML
45 lines
924 B
HTML
{% extends "zerver/base.html" %}
|
|
{% set entrypoint = "activity" %}
|
|
|
|
{# User activity. #}
|
|
|
|
{% block title %}
|
|
<title>{{ title }} | Zulip analytics</title>
|
|
{% endblock %}
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% if not is_home %}
|
|
<a class="show-all" href="/activity">Home</a>
|
|
<br />
|
|
{% endif %}
|
|
|
|
<h4>{{ title }}</h4>
|
|
|
|
{% if realm_link %}
|
|
<a href="{{ realm_link }}">Graph</a><br />
|
|
{% endif %}
|
|
|
|
<ul class="nav nav-tabs">
|
|
{% for name, activity in data %}
|
|
<li {% if loop.first %} class="active" {% endif %}>
|
|
<a href="#{{ name|slugify }}" data-toggle="tab">{{ name }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
{% for name, activity in data %}
|
|
|
|
<div class="tab-pane {% if loop.first %} active {% endif %}" id="{{ name|slugify }}">
|
|
{{ activity|safe }}
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|