addons-server/templates/base.html

106 строки
3.7 KiB
HTML

<!DOCTYPE html>
<html lang="{{ LANG }}" dir="{{ DIR }}">
<head>
<title>{% block title %}{{ _('Mozilla Add-ons') }}{% endblock %}</title>
<link rel="shortcut icon" type="image/x-icon"
href="{{ MEDIA_URL}}img/favicon.ico">
{# 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') }}" />
<meta charset="utf-8">
{% block site_css %}
{{ css('common') }}
{{ css('zamboni/z') }}
<!--[if IE]><link rel="stylesheet" href="{{ MEDIA_URL }}css/ie.css"><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="{{ MEDIA_URL }}css/ie7.css"><![endif]-->
{% endblock %}
{% block extrahead %}{% endblock %}
<noscript><link rel="stylesheet" href="{{ MEDIA_URL }}css/nojs.css"></noscript>
</head>
<body class="html-{{ DIR }} {{ request.APP.short }} {% block bodyclass %}{% endblock %}"
data-app="{{ request.APP.short }}"
data-appname="{{ request.APP.pretty }}"
data-appid="{{ request.APP.id }}"
data-anonymous="{{ request.user.is_authenticated() and 'false' or 'true' }}"
data-media-url="{{ MEDIA_URL }}">
{% if request.ADMIN_MESSAGE %}
<div id="site-notice">
<p>{{ request.ADMIN_MESSAGE }}</p>
</div>
{% endif %}
<div class="section">
{% block site_header %}
<div id="header" role="banner">
<p id="title">
{% block site_header_title %}
{% include "header_title.html" %}
{% endblock site_header_title %}
</p>
<p id="brand">
<a href="http://www.mozilla.com/" title="{{ _('Mozilla') }}"
accesskey="1">{{ _('Mozilla') }}</a>
</p>
{% block site_stats %}{% endblock %}
<div id="aux-nav" role="navigation">
<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>
{% include "user_login.html" %}
</div>
</div>
{% endblock site_header %}
{# Overridden in base_side_categories, which expands categories
on the side of the page. #}
{% block main_content %}
{% block navbar %}
<div class="stand-alone-options">
{% include "categories.html" %}
{% include "search.html" %}
</div>
{% endblock %}
{% block content %}{% endblock %}
{% 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 %}
{% include "footer.html" %}
{% 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&amp;WT.js=No&amp;WT.tv=8.6.2" />
</noscript>
{# End Webtrends #}
</body>
</html>