Separate the app store links from inner image markup

This commit is contained in:
Matt Jankowski 2024-11-18 09:28:57 -05:00
parent eeff6deb45
commit 255a111b4e

View file

@ -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]