From c36466d9527b264c8912dc6058b73e96d5d904d0 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Fri, 22 Feb 2019 13:16:24 -0800 Subject: [PATCH] updated unsupported page style --- app/ui/unsupported.js | 30 ++++++------------------------ public/locales/en-US/send.ftl | 1 + 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/app/ui/unsupported.js b/app/ui/unsupported.js index bc585634..c7bc889e 100644 --- a/app/ui/unsupported.js +++ b/app/ui/unsupported.js @@ -1,12 +1,10 @@ const html = require('choo/html'); -const assets = require('../../common/assets'); const modal = require('./modal'); module.exports = function(state, emit) { let strings = {}; let why = ''; let url = ''; - let buttonAction = ''; if (state.params.reason !== 'outdated') { strings = unsupportedStrings(state); @@ -20,38 +18,22 @@ module.exports = function(state, emit) { `; url = 'https://www.mozilla.org/firefox/new/?utm_campaign=send-acquisition&utm_medium=referral&utm_source=send.firefox.com'; - buttonAction = html` -

- Firefox
${strings.button} -

- `; } else { strings = outdatedStrings(state); url = 'https://support.mozilla.org/kb/update-firefox-latest-version'; - buttonAction = html` -

${strings.button}

- `; } return html`
${state.modal && modal(state, emit)}
-

${strings.header}

-

${strings.description}

+

${strings.header}

+

${strings.description}

${why} - - Firefox - ${buttonAction} + + ${strings.button}
@@ -70,6 +52,6 @@ function unsupportedStrings(state) { return { header: state.translate('notSupportedHeader'), description: state.translate('notSupportedDetailUpdate'), - button: state.translate('downloadFirefoxButtonSub') + button: state.translate('downloadFirefox') }; } diff --git a/public/locales/en-US/send.ftl b/public/locales/en-US/send.ftl index 0aee7ae9..03a5d41c 100644 --- a/public/locales/en-US/send.ftl +++ b/public/locales/en-US/send.ftl @@ -105,6 +105,7 @@ notSupportedDetailUpdate = Firefox Send will not work with this browser. Send wo notSupportedLink = Why is my browser not supported? notSupportedOutdatedDetail = Unfortunately this version of Firefox does not support the web technology that powers Firefox Send. You’ll need to update your browser. updateFirefox = Update Firefox +downloadFirefox = Download Firefox downloadFirefoxButtonSub = Free Download uploadedFile = File copyFileList = Copy URL