This repository has been archived by the owner on Jan 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
/
base.html
79 lines (69 loc) · 2.64 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="{{ LANG }}" dir="{{ DIR }}">
<head>
<title>{% block page_title %}{{ _('Welcome') }}{% endblock %} :: {{ _('Firefox Input') }}</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
{% block site_css %}
{{ css('base') }}
{% endblock %}
<link rel="shortcut icon" type="image/png" href="{{ settings.STATIC_URL }}img/favicon.png"/>
{% block feeds %}{% endblock %}
{% block extra_headers %}{% endblock %}
</head>
<body id="{% block body_id %}{% endblock %}" class="html-{{ DIR }}">
<nav id="nav-access">
<ul>
<li><a href="#main-content">{{ _('Proceed to main content') }}</a></li>
<li><a href="#footer">{{ _('Proceed to footer') }}</a></li>
</ul>
</nav>
{{ browserid_info() }}
{% block site_header %}
<header>
<h1 class="title"><a href="/">
{% trans %}
<strong>Firefox</strong> Input
{% endtrans %}
</a></h1>
<ul>
<li><a class="dashboard" href="{{ url('dashboard') }}"><span>{{ _('Dashboard') }}</span></a></li>
<li><a class="feedback" href="{{ url('feedback') }}"><span>{{ _('Give Feedback') }}</span></a></li>
{% if user.is_authenticated() and user.has_perm('analytics.can_view_dashboard') %}
<li><a class="adashboard" href="{{ url('analytics_dashboard') }}"><span>{{ _('Analytics') }}</span></a></li>
{% endif %}
</ul>
<ul class="pull-right">
{% if user.is_authenticated() %}
<li><span class="greeting">{{ _('Hello, {username}')|fe(username=displayname(user)) }}</span></li>
{% if user.is_superuser %}
<li><span><a href="{{ url('admin:index') }}">Admin</a></span></li>
{% endif %}
<li>{{ browserid_logout(text=_('Sign out')) }}</li>
{% else %}
<li>{{ browserid_login(text=_('Sign in')) }}</li>
{% endif %}
</ul>
</header>
{% endblock site_header %}
{% if settings.SHOW_STAGE_NOTICE %}
{{ css('stage') }}
<div class="stage-banner">
<div class="close-button">X</div>
This is a dev/staging site. The production site is
<a href="http://input.mozilla.org">here</a>.
</div>
{% endif %}
<div id="content">
{% block content %}{% endblock %}
</div>
{% block site_footer %}
{% include "includes/footer.html" %}
{% endblock %}
{% block site_js %}
{{ js('base') }}
<script type="text/javascript" src="https://login.persona.org/include.js"></script>
{% endblock %}
</body>
</html>