forked from mozilla/oneanddone
/
base.html
121 lines (109 loc) · 5.09 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. #}
<!DOCTYPE html>
<html class="windows no-js" lang="{{ LANG }}" dir="{{ DIR }}">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if title|default(None) %}{{ title }} | {% endif %}{{ _('Mozilla One and Done') }}</title>
<link rel="shortcut icon" href="{{ static('favicon.ico') }}">
<!--[if lte IE 8]>
<script src="{{ static('js/libs/html5shiv.js') }}"></script>
<![endif]-->
{% block site_css %}
<link rel="stylesheet" type="text/css" href="//www.mozilla.org/tabzilla/media/css/tabzilla.css" media="screen" />
{{ less_css('base') }}
{% endblock %}
{% if settings.GOOGLE_ANALYTICS_ID %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ settings.GOOGLE_ANALYTICS_ID }}', 'mozilla.org');
ga('send', 'pageview');
</script>
{% endif %}
</head>
<body class="{% block body_class %}sand{% endblock %}">
{{ browserid_info() }}
<div id="outer-wrapper">
<div id="wrapper">
<header id="masthead">
<a href="http://www.mozilla.org/" id="tabzilla">Mozilla</a>
<nav id="nav-main" role="menubar">
<span class="toggle" role="button" aria-controls="nav-main-menu" tabindex="0">{{ _('Menu') }}</span>
<ul role="menu" id="nav-main-menu">
<li role="menuitem" class="auth-menu">
{% if user.is_authenticated() %}
{% if user.display_name %}
{% trans name=user.display_name, profile_url=url('users.profile.detail') %}
Welcome, <a href="{{ profile_url }}">{{ name }}</a>
{% endtrans %}
{% else %}
{{ _('Welcome!') }}
{% endif %}
| <a href="{{ url('tasks.available') }}">{{ _('Available Tasks') }}</a>
| {{ browserid_logout(text=_('Sign out')) }}
{% else %}
{{ browserid_login(text=_('Sign in'), color='blue') }}
{% endif %}
</li>
</ul>
</nav>
<h2>
<a href="{{ url('base.home') }}" title="{{ _('Home') }}">
<img src="{{ static('img/qa-logo-header.png') }}" width="45" height="45" alt="{{ _('Mozilla QA logo') }}" class="logo">
<span class="logo-text">{{ _('One and Done') }}</span>
</a>
</h2>
</header>
{% for message in messages %}
<div class="alert {{ message.tags }}">
{% if 'safe' in message.tags %}
{{ message|safe }}
{% else %}
{{ message }}
{% endif %}
</div>
{% endfor %}
{% block content %}{% endblock %}
</div>
<footer id="colophon">
<div class="row">
<div class="footer-logo">
<a href="//mozilla.org"><img src="{{ static('img/sandstone/footer-mozilla.png') }}" alt="mozilla"></a>
</div>
<div class="footer-license">
<p>
{% trans cc_href='//www.mozilla.org/foundation/licensing/website-content.html', this_year=thisyear() %}
Portions of this content are ©1998–{{ this_year }} by individual mozilla.org contributors. Content available under a <a href="{{ cc_href }}">Creative Commons license</a>.
{% endtrans %}
</p>
<p><a href="https://github.com/mozilla/oneanddone">{{ _('Contribute to this page') }}</a></p>
</div>
<ul class="footer-nav">
<li><a href="//mozilla.org/about/contact.html">{{ _('Contact Us') }}</a></li>
<li><a href="//mozilla.org/privacy-policy.html">{{ _('Privacy Policy') }}</a></li>
<li><a href="//mozilla.org/about/legal.html">{{ _('Legal Notices') }}</a></li>
<li><a href="//mozilla.org/legal/fraud-report/index.html">{{ _('Report Trademark Abuse') }}</a></li>
</ul>
<ul class="footer-nav">
<li><a href="http://twitter.com/firefox">Twitter</a></li>
<li><a href="http://facebook.com/Firefox">Facebook</a></li>
<li><a href="https://affiliates.mozilla.org/">{{ _('Firefox Affiliates') }}</a></li>
</ul>
</div>
</footer>
</div>
{% block site_js %}
{% if settings.TEMPLATE_DEBUG %}
<script src="{{ static('js/libs/less-1.5.0.min.js') }}"></script>
{% endif %}
<script src="//www.mozilla.org/tabzilla/media/js/tabzilla.js"></script>
<script src="//login.persona.org/include.js"></script>
{{ js('base') }}
{% endblock %}
</body>
</html>