From 255a111b4e26ef91f3ecfea3b12c231a27857899 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Mon, 18 Nov 2024 09:28:57 -0500 Subject: [PATCH] Separate the app store links from inner image markup --- app/views/application/mailer/_checklist.html.haml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/views/application/mailer/_checklist.html.haml b/app/views/application/mailer/_checklist.html.haml index 91c7c98f26..afe5f07cea 100644 --- a/app/views/application/mailer/_checklist.html.haml +++ b/app/views/application/mailer/_checklist.html.haml @@ -29,8 +29,16 @@ %div - if defined?(show_apps_buttons) && show_apps_buttons .email-welcome-apps-btns - = link_to image_tag(frontend_asset_url('images/mailer-new/store-icons/btn-app-store.png'), alt: t('user_mailer.welcome.apps_ios_action'), width: 120, height: 40), 'https://apps.apple.com/app/mastodon-for-iphone-and-ipad/id1571998974' - = link_to image_tag(frontend_asset_url('images/mailer-new/store-icons/btn-google-play.png'), alt: t('user_mailer.welcome.apps_android_action'), width: 120, height: 40), 'https://play.google.com/store/apps/details?id=org.joinmastodon.android' + = link_to 'https://apps.apple.com/app/mastodon-for-iphone-and-ipad/id1571998974' do + = image_tag frontend_asset_url('images/mailer-new/store-icons/btn-app-store.png'), + alt: t('user_mailer.welcome.apps_ios_action'), + height: 40, + width: 120 + = link_to 'https://play.google.com/store/apps/details?id=org.joinmastodon.android' do + = image_tag frontend_asset_url('images/mailer-new/store-icons/btn-google-play.png'), + alt: t('user_mailer.welcome.apps_android_action'), + height: 40, + width: 120 - elsif defined?(button_text) && defined?(button_url) && defined?(checked) && !checked = render 'application/mailer/button', text: button_text, url: button_url, has_arrow: false /[if mso]