{{ ftl('firefox-all-choose-which-firefox') }}
-{{ self.page_desc() }}
-diff --git a/bedrock/base/templates/product-all-unified-macros.html b/bedrock/base/templates/product-all-unified-macros.html deleted file mode 100644 index 570d4d349b1..00000000000 --- a/bedrock/base/templates/product-all-unified-macros.html +++ /dev/null @@ -1,148 +0,0 @@ -{# - 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 https://mozilla.org/MPL/2.0/. -#} - -{% macro select_product_list(products, disabled=False) %} - -{% endmacro %} - -{% macro select_version_list(id, version, disabled=False) %} - {% set version_select_id = 'select_' ~ id ~ '_version' %} - - -{% endmacro %} - -{% macro product_options(id, platforms, builds, version, disabled=False, hide_version=False, hide_language=False, hide_platform=False) %} -
-{% endmacro %} - -{% macro select_platform_list(id, platforms, disabled=False) %} - - - {{ ftl('firefox-all-get-help') }} - - -{% endmacro %} - -{% macro select_language_list(id, builds, disabled=False) %} - - -{% endmacro %} - -{% macro build_locale_list(id, product_label, platforms, builds, channel) %} - {% if builds %} -{{ self.page_desc() }}
-{{ self.page_desc() }}
+ {% if product %} + {% if product.slug == "desktop-release" %} +
+ {{ ftl('download-button-using-debian', attrs='href="https://support.mozilla.org/kb/install-firefox-linux#w_install-firefox-deb-package-for-debian-based-distributions" rel="external noopener" data-cta-type="link" data-cta-text="You can set up our APT repository instead"'|safe) }}
+
+ {% set ms_store_product = 'firefox_beta' if product.slug.endswith('beta') else 'firefox' %} + {% set ms_store_href = ms_store_url(product=ms_store_product, campaign='firefox-all') %} + {{ ms_store_button(href=ms_store_href, id='msStoreLink') }} +
+ {% elif product.slug == "desktop-esr" %} + {# ESR #} + {% set is_esr_next_version = desktop_esr_next_version %} + {# If there are multiple ESR's available, show next as well. #} + {% if is_esr_next_version %} + + + {% if ftl_has_messages('firefox-all-esr-we-are-in-transition', 'firefox-all-esr-when-there-is', 'firefox-all-esr-if-you-choose') %} +{{ ftl('firefox-all-esr-we-are-in-transition', esr_next_major=desktop_esr_next_version.split('.')[0], esr_current_major=desktop_esr_latest_version.split('.')[0] ) }}
+{{ ftl('firefox-all-esr-when-there-is') }}
+{{ ftl('firefox-all-esr-if-you-choose') }}
+ {% endif %} + + + + {% if ftl_has_messages('firefox-all-esr-read-more') %} +{{ ftl('firefox-all-esr-read-more', attrs='href="https://support.mozilla.org/kb/firefox-esr-release-cycle" rel="external noopener" data-link-text="Firefox ESR release cycle"') }}
+ {% endif %} + + {% else %} + {# ESR latest #} ++ + {{ ftl('download-button-download-now') }} {{ icon_download|safe }} + +
+ {% endif %} + {% else %} + {# All other desktop releases #} ++ + {{ ftl('download-button-download-now') }} {{ icon_download|safe }} + +
+ {% endif %} + {% elif product.slug.startswith('android') or product.slug.startswith('ios') or product.slug.startswith('mobile') %} + {# all mobile releases #} + {% include 'firefox/all/mobile.html' %} + {% else %} ++ {{ ftl('firefox-all-sorry-we-couldnt-find') }} +
+ {% endif %} +