summaryrefslogtreecommitdiff
path: root/core/app/helpers/core_helper.rb
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2013-10-18 01:02:34 -0700
committerazul <azul@riseup.net>2013-10-18 01:02:34 -0700
commit8cb227a4e5e7b63e5e7d7d9af5a9162e0582e0cd (patch)
tree424526c0fdebe43209fdf65adcde549bb5cd3e0d /core/app/helpers/core_helper.rb
parent221532448ba4c435427ad2b5b3eca729b352c354 (diff)
parent1384f6c43dde6a19f270416e34e39130a3d0a53d (diff)
Merge pull request #103 from azul/feature/configurable-download-urls
Make download links configurable
Diffstat (limited to 'core/app/helpers/core_helper.rb')
-rw-r--r--core/app/helpers/core_helper.rb36
1 files changed, 0 insertions, 36 deletions
diff --git a/core/app/helpers/core_helper.rb b/core/app/helpers/core_helper.rb
index 29a4700..4126906 100644
--- a/core/app/helpers/core_helper.rb
+++ b/core/app/helpers/core_helper.rb
@@ -10,40 +10,4 @@ module CoreHelper
render 'common/home_page_buttons'
end
- def available_clients
- CLIENT_AVAILABILITY
- end
-
- def alternative_client_links(os = nil)
- alternative_clients(os).map do |client|
- link_to(client.capitalize, client_download_url(client))
- end
- end
-
- def alternative_clients(os = nil)
- CLIENT_AVAILABILITY - [os]
- end
-
- def client_download_url(os = nil)
- client_download_domain(os) + client_download_path(os)
- end
-
- def client_download_domain(os)
- "https://downloads.leap.se"
- end
-
- def client_download_path(os)
- CLIENT_DOWNLOAD_PATHS[os] || '/client'
- end
-
-
- CLIENT_AVAILABILITY = %w/linux32 linux64 mac windows android/
- CLIENT_DOWNLOAD_PATHS = {
- android: '/client/android',
- linux: '/client/linux',
- linux32: '/client/linux/Bitmask-linux32-latest.tar.bz2',
- linux64: '/client/linux/Bitmask-linux64-latest.tar.bz2',
- osx: '/client/osx/Bitmask-OSC-latest.dmg',
- windows: '/client/windows'
- }.with_indifferent_access
end