summaryrefslogtreecommitdiff
path: root/pages/android
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-07-08 15:57:46 -0700
committerelijah <elijah@riseup.net>2014-07-08 15:57:46 -0700
commit84f02fd40808656a17fa7ff8400550462a259a7a (patch)
tree459a664063c411927df0d68ba6684571e35e1f19 /pages/android
parentfb8ad81924af2187d66b6d80d5785273c3d46829 (diff)
added qr codes for the android download page
Diffstat (limited to 'pages/android')
-rw-r--r--pages/android/en.haml30
1 files changed, 27 insertions, 3 deletions
diff --git a/pages/android/en.haml b/pages/android/en.haml
index b0d3dab..29b872f 100644
--- a/pages/android/en.haml
+++ b/pages/android/en.haml
@@ -1,5 +1,11 @@
- @title = "Bitmask for Android"
-- @toc = false
+
+:javascript
+ $(document).ready(function() {
+ if (navigator.userAgent.toLowerCase().indexOf("android") > -1) {
+ $('.non-android').hide();
+ }
+ });
.row
.col-sm-8.col-sm-offset-2
@@ -7,9 +13,27 @@
%i.fa.fa-envelope
<b>NOTE:</b> Bitmask for Android does not yet support encrypted email.
-%h2 Download latest version
+%h2 Install from Google Play
+
+You can search for "Bitmask" in the Google Play store or use this link:
+
+.p.android
+ = render({:partial => 'common/download_button'}, {:link => 'https://play.google.com/store/apps/details?id=se.leap.bitmaskclient', :text => 'Install for Android'})
+
+.p.non-android
+ %a(href='https://play.google.com/store/apps/details?id=se.leap.bitmaskclient' alt='download')
+ %img(src='/assets/qr/market-se.leap.bitmaskclient.png')
+
+%h2 Download app
+
+%p Alternately, you can download the Bitmask app directly from this website. You will need to enabled the option <b>Settings > Security > Unknown Sources</b> on your device for this method to work.
+
+.p.android
+ = render({:partial => 'common/download_button'}, {:link => '/client/android/Bitmask-Android-latest.apk', :text => 'Download for Android'})
-= render({:partial => 'common/download_button'}, {:link => '/client/android/Bitmask-Android-latest.apk', :text => 'Download for Android'})
+.p.non-android
+ %a(href='/client/android/Bitmask-Android-latest.apk' alt='download')
+ %img(src='/assets/qr/dl.bitmask.net-bitmask-android-latest.png')
%h2 Download other versions