Remove Android requirement from install flow

// FREEBIE
This commit is contained in:
lilia 2016-08-31 13:38:11 -07:00
parent b5191e78c3
commit 4b9f7d518e
3 changed files with 12 additions and 8 deletions

View file

@ -159,18 +159,22 @@
"message": "Get started" "message": "Get started"
}, },
"installSignalLink": { "installSignalLink": {
"message": "First, install <a $a_params$>Signal</a> on your Android phone.<br /> We'll link your devices and keep your messages in sync.", "message": "First, install Signal on your <a $play_store$>Android</a> or <a $app_store$>iPhone</a>.<br /> We'll link your devices and keep your messages in sync.",
"description": "Prompt the user to install Signal on Android before linking", "description": "Prompt the user to install Signal on their phone before linking",
"placeholders": { "placeholders": {
"a_params": { "play_store": {
"content": "$1",
"example": "href='http://example.com'"
},
"app_store": {
"content": "$1", "content": "$1",
"example": "href='http://example.com'" "example": "href='http://example.com'"
} }
} }
}, },
"installIHaveSignalButton": { "installIHaveSignalButton": {
"message": "I have Signal for Android", "message": "Got it",
"description": "Button for the user to confirm that they have Signal for Android" "description": "Button for the user to confirm that they have Signal installed."
}, },
"installFollowUs": { "installFollowUs": {
"message": "<a $a_params$>Follow us</a> for updates about multi-device support for iOS.", "message": "<a $a_params$>Follow us</a> for updates about multi-device support for iOS.",

View file

@ -8,13 +8,14 @@
Whisper.InstallView = Whisper.View.extend({ Whisper.InstallView = Whisper.View.extend({
templateName: 'install_flow_template', templateName: 'install_flow_template',
render_attributes: function() { render_attributes: function() {
var installSignalHref = 'https://play.google.com/store/apps/details?id=org.thoughtcrime.securesms'; var playStoreHref = 'https://play.google.com/store/apps/details?id=org.thoughtcrime.securesms';
var appStoreHref = 'https://itunes.apple.com/us/app/signal-private-messenger/id874139669';
var twitterHref = 'https://twitter.com/whispersystems'; var twitterHref = 'https://twitter.com/whispersystems';
return { return {
installWelcome: i18n('installWelcome'), installWelcome: i18n('installWelcome'),
installTagline: i18n('installTagline'), installTagline: i18n('installTagline'),
installGetStartedButton: i18n('installGetStartedButton'), installGetStartedButton: i18n('installGetStartedButton'),
installSignalLink: this.i18n_with_link('installSignalLink', installSignalHref), installSignalLink: this.i18n_with_link('installSignalLink', playStoreHref, appStoreHref),
installIHaveSignalButton: i18n('installIHaveSignalButton'), installIHaveSignalButton: i18n('installIHaveSignalButton'),
installFollowUs: this.i18n_with_link('installFollowUs', twitterHref), installFollowUs: this.i18n_with_link('installFollowUs', twitterHref),
installAndroidInstructions: i18n('installAndroidInstructions'), installAndroidInstructions: i18n('installAndroidInstructions'),

View file

@ -26,7 +26,6 @@
<div class='nav'> <div class='nav'>
<p>{{{ installSignalLink }}}</p> <p>{{{ installSignalLink }}}</p>
<div> <a class='button step3'>{{ installIHaveSignalButton }}</a> </div> <div> <a class='button step3'>{{ installIHaveSignalButton }}</a> </div>
<p>{{{ installFollowUs }}}</p>
<span class='dot step1'></span> <span class='dot step1'></span>
<span class='dot step2 selected'></span> <span class='dot step2 selected'></span>
<span class='dot step3'></span> <span class='dot step3'></span>