From 5555b74650a32faaad221e83c14bdf1cef6d85e7 Mon Sep 17 00:00:00 2001 From: Stephanie Hobson Date: Wed, 31 Jul 2024 14:28:43 -0700 Subject: [PATCH] Convert buttons with data-link-type="download" into CTAs Fix #14062 --- bedrock/base/templates/macros.html | 18 ++++- .../firefox/browsers/chromebook.html | 4 +- .../includes/download-button-thanks.html | 2 +- .../firefox/includes/download-button.html | 5 +- .../firefox/includes/download-list.html | 2 +- .../templates/firefox/includes/macros.html | 17 ++++- docs/attribution/0001-analytics.rst | 72 +++++++++++++++++++ 7 files changed, 109 insertions(+), 11 deletions(-) diff --git a/bedrock/base/templates/macros.html b/bedrock/base/templates/macros.html index 8b156268b6b..49ec1a191b6 100644 --- a/bedrock/base/templates/macros.html +++ b/bedrock/base/templates/macros.html @@ -48,7 +48,14 @@ {% macro google_play_button(class_name='', extra_data_attributes={}, extra_img_attributes={}, href=settings.GOOGLE_PLAY_FIREFOX_LINK_UTMS, id='', product='Firefox', target='') -%} {% set optional_img_attributes = {'alt': ftl('download-button-google-play'), 'width': '152', 'height': '45', 'l10n': True} %} {% do optional_img_attributes.update(extra_img_attributes) %} - + {{ resp_img( url='img/firefox/android/btn-google-play.png', srcset={ @@ -61,7 +68,14 @@ {% macro apple_app_store_button(class_name='', extra_data_attributes={}, extra_img_attributes={}, href=settings.APPLE_APPSTORE_FIREFOX_LINK, id='', product='Firefox', target='') -%} {% set optional_img_attributes = {'width': '152', 'height': '45'} %} - + {{ ftl('download-button-download-app-store') }} {%- endmacro %} diff --git a/bedrock/firefox/templates/firefox/browsers/chromebook.html b/bedrock/firefox/templates/firefox/browsers/chromebook.html index 065dbddcccc..9419bf8ee63 100644 --- a/bedrock/firefox/templates/firefox/browsers/chromebook.html +++ b/bedrock/firefox/templates/firefox/browsers/chromebook.html @@ -49,13 +49,13 @@

{{ ftl('browsers-chromebook-get-firefox-browser') }}<

{{ ftl('browsers-chromebook-dropdown-copy') }}