Permalink
Switch branches/tags
Find file Copy path
187 lines (164 sloc) 8.17 KB
{% from "product-all-macros.html" import build_search_box, build_table, build_row, build_link with context %}
{% extends "firefox/base-resp.html" %}
{# "noindex" pages should not have the canonical or hreflang tags: bug 1442331 #}
{% block canonical_urls %}<meta name="robots" content="noindex,follow">{% endblock %}
{% block page_title %}
{%- if platform == 'android' -%}
{{ _('Download %s for Android in your language')|format(channel_label) }}
{%- else -%}
{{ _('Download %s in your language')|format(channel_label) }}
{%- endif -%}
{% endblock %}
{% block twitter_id %}
{%- if channel == 'nightly' -%}
FirefoxNightly
{%- else -%}
{{ super() }}
{%- endif -%}
{% endblock %}
{% block page_desc %}
{%- if channel == 'beta' -%}
{{ _('Download Firefox Beta in your language and experience cutting edge features before they make it to final release. Provide feedback to help us refine and polish the next version of Firefox.') }}
{%- elif channel == 'alpha' -%}
{{ _('Download %s in your language to experience the newest features and innovations in an unstable environment even before they go to Beta. Give us feedback that will determine what makes it to Final Release and help shape the future of Firefox.')|format(channel_label) }}
{%- elif channel == 'nightly' -%}
{{ _('Are you a power-user comfortable installing pre-alpha software? Install Nightly and help us improve Firefox quality, hunt crashes and regressions and test new features as they get coded!') }}
{%- elif channel == 'esr' and l10n_has_tag('esr_page_desc_bug1421584') -%}
{{ _('Firefox ESR is intended for system administrators who deploy and maintain the desktop environment in organizations such as schools, governments and businesses.') }}
{%- elif channel == 'esr' -%}
{{ _('Firefox ESR is intended for groups who deploy and maintain the desktop environment in large organizations. <a href="%s">Learn more.</a>')|format(url('firefox.organizations.organizations')) }}
{%- else -%}
{{ _('Firefox is made in large part by volunteers around the world. That’s why we offer it in 90 languages (and why there’s heart and soul in every piece of code).') }}
{%- endif -%}
{% endblock %}
{% block page_favicon %}
{%- if platform == 'desktop' and channel == 'alpha' -%}
{{ static('img/firefox/developer/favicon.png') }}
{%- elif channel == 'nightly' -%}
{{ static('img/firefox/nightly/favicon.png') }}
{%- else -%}
{{ super() }}
{%- endif -%}
{% endblock %}
{% block page_favicon_large %}
{%- if platform == 'desktop' and channel == 'alpha' -%}
{{ static('img/firefox/developer/favicon-196.png') }}
{%- elif channel == 'nightly' -%}
{{ static('img/firefox/nightly/favicon-192.png') }}
{%- else -%}
{{ super() }}
{%- endif -%}
{% endblock %}
{% block page_image %}
{%- if platform == 'desktop' and channel == 'alpha' -%}
{{ static('img/firefox/developer/page-image.png') }}
{%- elif channel == 'nightly' -%}
{{ static('img/firefox/nightly/page-image.png') }}
{%- else -%}
{{ static('img/firefox/all/page-image.png') }}
{%- endif -%}
{% endblock %}
{% block body_id %}firefox-all{% endblock %}
{% block body_class -%}
sky {{ platform }} {{ channel }} {% if channel == 'alpha' %}blueprint{% endif %} {% if channel == 'nightly' %}space{% endif %}
{% endblock %}
{% block page_css %}
{{ css_bundle('firefox_all') }}
{% endblock %}
{% block site_header_logo %}
{% if platform == 'desktop' and channel == 'alpha' %}
<h2><a href="{{ url('firefox.developer.index') }}">{{ high_res_img('logos/firefox/logo-dev-edition-quantum-wordmark.png', {'alt': _('Firefox Developer Edition'), 'width': '220', 'height': '84'}) }}</a></h2>
{% elif channel == 'nightly' %}
<h2>{{ high_res_img('firefox/template/header-logo-nightly.png', {'alt': _('Firefox Nightly'), 'width': '305', 'height': '70'}) }}</h2>
{% else %}
{{ super() }}
{% endif %}
{% endblock %}
{% block site_header_share %}
{% if platform == 'desktop' and channel == 'release' -%}
{% set share_urls = { 'twitter': 'http://mzl.la/1IMdR5T', 'googleplus': 'http://mzl.la/1y7TgOf', 'facebook': 'http://mzl.la/1ATF965' } -%}
{% set share_text = _('Thanks to contributions of Mozilla community members around the world, Firefox is available in 90 languages:') %}
{{ share_cta(_('Share'), share_urls, share_text, 'spread-firefox-all', 'sky mini') }}
{% endif -%}
{% endblock %}
{% block learn_more_url %}
{%- if channel == 'esr' and l10n_has_tag('esr_page_desc_bug1421584') -%}
{{ url('firefox.organizations.organizations') }}
{%- endif -%}
{% endblock %}
{% block content %}
<header id="main-feature">
<h1>{{ self.page_title() }}</h1>
<h2>{{ self.page_desc() }}{% if self.learn_more_url() %} <a href="{{ self.learn_more_url() }}">{{ _('Learn more') }}</a>{% endif %}</h2>
{% if channel == 'nightly' %}
<p class="warning nightly">{{ _('<strong>Warning</strong>: Nightly is updated daily. It is most appropriate for core Mozilla contributors and early adopters, not regular users.') }}</p>
{% elif channel == 'release' %}
<p class="warning xpvista">{{ _('<a href="%(url)s">Mozilla no longer provides security updates for Firefox on Windows XP or Vista</a>, but you can still download the final Windows 32-bit version.')|format(url='https://support.mozilla.org/kb/end-support-windows-xp-and-vista') }}</p>
{% endif %}
<ul>
{% if channel != 'nightly' %}
<li><a href="{{ firefox_url(platform, 'sysreq', channel) }}">{{ _('Check the system requirements') }}</a></li>
<li><a href="{{ firefox_url(platform, 'notes', channel) }}">{{ _('Release notes') }}</a></li>
{% endif %}
<li><a href="https://developer.mozilla.org/docs/Mozilla/Developer_guide/Source_Code">{{ _('Source code') }}</a></li>
</ul>
</header>
{% if platform == 'desktop' %}
{{ build_search_box(query, full_builds, test_builds) }}
{% endif %}
<main id="main-content" role="main" class="pager pager-with-tabs pager-no-history">
{% if full_builds_next %}
<div class="pager-tabs-wrapper">
<span class="pager-title">{{ _('Show:') }}</span>
<ul class="pager-tabs">
<li><a href="#builds-next">Firefox {{ full_builds_next_version }}</a></li>
<li><a href="#builds">Firefox {{ full_builds_version }}</a></li>
</ul>
</div>
{% endif %}
<section class="pager-content">
{# ESR_NEXT (newest ESR) builds should be listed first, if available. #}
{% if full_builds_next %}
<div class="esr-builds-table pager-page" id="builds-next">
<div class="localized">
{{ build_table(platforms, full_builds_next,
_('Fully localized versions')) }}
</div>
{% if test_builds_next %}
<div class="localized-testing">
{{ build_table(platforms, test_builds_next,
_('Localized versions in testing'),
_('These localizations aren’t final. We’re waiting for more feedback from the community to perfect them.')) }}
</div>
{% endif %}
</div> {#-- /#builds-next --#}
{% endif %}
<div class="esr-builds-table pager-page" id="builds">
<div class="localized">
{{ build_table(platforms, full_builds,
_('Fully localized versions')) }}
</div>
{% if test_builds %}
<div class="localized-testing" id="localized-testing">
{{ build_table(platforms, test_builds,
_('Localized versions in testing'),
_('These localizations aren’t final. We’re waiting for more feedback from the community to perfect them.')) }}
</div>
{% endif %}
</div> {#-- /builds --#}
</section>
</main>
{% endblock %}
{% block email_form %}
<aside id="newsletter-subscribe" class="ga-section" data-ga-label="Keep up with all things Firefox.">
<div class="content container">
{{ email_newsletter_form(title=_('Keep up with<br> all things Firefox.'), button_class='button-light') }}
</div>
</aside>
{% endblock %}
{% block js %}
{# searching with js only makes sense if we're displaying all #}
{% if platform == 'desktop' and not query %}
{{ js_bundle('firefox_all') }}
{% endif %}
{% endblock %}