forked from mozilla/zamboni
/
base.html
150 lines (143 loc) · 5.59 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html lang="{{ LANG }}" dir="{{ DIR }}">
<head>
<meta charset="utf-8">
<title>{% block title %}{{ _('Mozilla Add-ons') }}{% endblock %}</title>
<link rel="shortcut icon" type="image/x-icon"
href="{{ MEDIA_URL}}img/favicon.ico">
{% block rss_feed %}{% endblock %}
{# L10n: {0} is an application, like Firefox. #}
<link title="{{ _('{0} Add-ons')|f(APP.pretty) }}"
rel="search" type="application/opensearchdescription+xml"
href="{{ url('amo.opensearch') }}" />
{% block site_css %}
{{ css('zamboni/css') }}
<!--[if IE]><link rel="stylesheet" href="{{ MEDIA_URL }}css/legacy/ie.css"><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="{{ MEDIA_URL }}css/legacy/ie7.css"><![endif]-->
{% endblock %}
{% block extrahead %}{% endblock %}
<noscript><link rel="stylesheet" href="{{ MEDIA_URL }}css/legacy/nojs.css"></noscript>
</head>
<body class="html-{{ DIR }} {{ request.APP.short }} moz-header-slim {% block bodyclass %}{% endblock %}"
data-app="{{ request.APP.short }}"
data-appname="{{ request.APP.pretty }}"
data-appid="{{ request.APP.id }}"
data-anonymous="{{ (not request.user.is_authenticated())|json }}"
data-readonly="{{ settings.READ_ONLY|json }}"
data-media-url="{{ MEDIA_URL }}"
{% block bodyattrs %}{% endblock %}>
{% if ADMIN_MESSAGE or settings.READ_ONLY%}
<div id="site-notice">
{% if ADMIN_MESSAGE %}
<p>{{ ADMIN_MESSAGE }}</p>
{% endif %}
{% if settings.READ_ONLY %}
<p>{{ _("Some features are temporarily disabled while we perform website maintenance. We'll be back to full capacity shortly.") }}</p>
{% endif %}
</div>
</div>
{% endif %}
<div class="section">
{% block site_header %}
{% if request.APP == amo.FIREFOX or request.APP == amo.MOBILE %}
{% include "amo_header.html" %}
{% else %}
<div id="minimal-header"><a class="mozilla" href="http://www.mozilla.org/">
{{ _('visit <span>mozilla.org</span>')|safe }}
</a></div>
{% endif %}
<div class="amo-header">
<div id="aux-nav" role="navigation">
{% block aux_nav %}
<ul id="other-apps" class="change"
title="{{ _('Find add-ons for other applications') }}">
<li>
<a href="#" class="controller">{{ _('Other Applications') }}</a>
<ul>
{% for app in amo.APP_USAGE %}
{% if app != request.APP %}
<li id="app-{{ app.short }}" class="{{ app.short }}">
<a href="{{ locale_url(app.short) }}">{{ app.pretty }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
</li>
</ul>
{% endblock aux_nav %}
{% if not settings.READ_ONLY %}
{% include "user_login.html" %}
{% endif %}
</div>
<div class="header-search" role="search">
{% block search_form %}
{% include 'search.html' %}
{% endblock %}
</div>
<div id="masthead">
{% block site_header_title %}
{% include "header_title.html" %}
{% endblock %}
{% block site_stats %}{% endblock %}
</div>
</div>
{% endblock site_header %}
{# Overridden in base_side_categories, which expands categories
on the side of the page. #}
{% block main_content %}
{% block navbar %}
{% endblock %}
{# outer_content is for something you want above content on every page. #}
{% block outer_content %}{% endblock %}
{% block content %}{% endblock %}
{% endblock %}
</div>
<div id="tooltip">
<span></span>
</div>
<div id="popup-staging">
{{ sharing_box() }}
<div id="add-to-collection" class="popup">
<div class="collection-add-login">
<p>{% trans %}
To create your own collections, you must have a Mozilla Add-ons account.
{% endtrans %}</p>
<p class="register-button">
<a class="button" href="{{ remora_url('users/register') }}">{{ _('Create an Add-ons Account') }}</a>
</p>
<p>
{% trans login=login_link() %}
or <a href="{{ login }}">log in to your current account</a>
{% endtrans %}
</p>
</div>
</div>
{% block popups %}
{% endblock %}
</div>
{# js #}
{% block site_js %}
<script src="{{ url('jsi18n') }}/build:{{ BUILD_ID_JS }}"></script>
{{ js('common') }}
<script async defer src="{{ url('addons.buttons.js') }}/build:{{ BUILD_ID_JS }}"></script>
{% endblock %}
{% block js %}{% endblock %}
{% block footer %}
<div id="footer" role="contentinfo">
<div class="section">
{% block footer_extras %}
<img class="footerlogo" src="{{ MEDIA_URL }}img/zamboni/footer-logo-med.png" alt="">
{% endblock %}
{% include "footer.html" %}
</div> {# section #}
</div> {# footer #}
{% endblock %}
{# Webtrends Stats Tracking #}
<script defer src="{{ MEDIA_URL }}js/webtrends/webtrends-v0.1.js"></script>
<noscript>
<img id="DCSIMG" width="1" height="1"
src="https://statse.webtrendslive.com/dcso6de4r0000082npfcmh4rf_4b1e/njs.gif?dcsuri=/nojavascript&WT.js=No&WT.tv=8.6.2" />
</noscript>
{# End Webtrends #}
</body>
</html>