/
base.html
62 lines (52 loc) · 2.2 KB
/
base.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="{{ g.localeinfo.language_tag }}" dir="{{ g.localeinfo.text_direction }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block tab_title required %}{% endblock %} | {{ g.organization_name }}</title>
<link rel="stylesheet" href="/static/css/journalist.css">
<link rel="icon" type="image/png" href="/static/i/favicon.png">
<!-- nosemgrep: generic.html-templates.security.unquoted-attribute-var.unquoted-attribute-var -->
<script src="{{ url_for("static", filename="js/journalist.js") }}"></script>
{% block extrahead %}{% endblock %}
</head>
<body>
{% if session.logged_in() %}
<nav aria-label="{{ gettext('Navigation') }}">
<a href="#main" class="visually-hidden until-focus">{{ gettext('Skip to main content') }}</a>
{{ gettext('Logged on as') }}
<a href="{{ url_for('account.edit') }}" id="link-edit-account">{{ session.get_user().username }}</a> |
{% if session.get_user() and session.get_user().is_admin %}
<a href="{{ url_for('admin.index') }}" id="link-admin-index">{{ gettext('Admin') }}</a> |
{% endif %}
<a href="{{ url_for('main.logout') }}" id="link-logout">{{ gettext('Log Out') }}</a>
</nav>
{% endif %}
<div class="content">
<div class="container">
{% block header %}
<header>
<a aria-label="{{ gettext('Return to All Sources') }}" href="{{ url_for('main.index') }}" class="no-bottom-border"><img src="{{ g.logo }}" class="logo small"
alt="{{ g.organization_name }} logo" width="250"></a>
{% include 'locales.html' %}
</header>
{% endblock %}
<div class="panel-container column">
<div class="flash-panel">
{% include 'flashed.html' %}
</div>
<main id="main" tabindex="-1">
{% block body %}{% endblock %}
</main>
</div>
</div>
{% block footer %}
<footer>
<!-- nosemgrep: python.flask.security.xss.audit.template-unescaped-with-safe.template-unescaped-with-safe -->
{{ gettext("Powered by <b>SecureDrop {version}</b>.").format(version=version)|safe }}
</footer>
{% endblock %}
</div>
{% include 'js-strings.html' %}
</body>
</html>