summaryrefslogtreecommitdiff
path: root/core/app/helpers/download_helper.rb
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2014-04-17 10:12:05 +0200
committerazul <azul@riseup.net>2014-04-17 10:12:05 +0200
commit3513ad74f950b113af1ba1e3d06bc6a55c48fde5 (patch)
treedb49ebd4428053d5c8d720275b77594a531a1ad1 /core/app/helpers/download_helper.rb
parentcb6442c344d6bdaf52c3878b2de2fcf4d85f2648 (diff)
parent3d3688647fab7049e5b531c45b85c1e46a1d528f (diff)
Merge pull request #146 from azul/refactor/engines
Refactor/engines
Diffstat (limited to 'core/app/helpers/download_helper.rb')
-rw-r--r--core/app/helpers/download_helper.rb33
1 files changed, 0 insertions, 33 deletions
diff --git a/core/app/helpers/download_helper.rb b/core/app/helpers/download_helper.rb
deleted file mode 100644
index ee0fe73..0000000
--- a/core/app/helpers/download_helper.rb
+++ /dev/null
@@ -1,33 +0,0 @@
-module DownloadHelper
-
- def alternative_client_links(os = nil)
- alternative_clients(os).map do |client|
- link_to(I18n.t("os."+client), client_download_url(client))
- end
- end
-
- def alternative_clients(os = nil)
- available_clients - [os]
- end
-
- def client_download_url(os = nil)
- client_download_domain + client_download_path(os)
- end
-
- def client_download_path(os)
- download_paths[os.to_s] || download_paths['other'] || ''
- end
-
- def available_clients
- APP_CONFIG[:available_clients] || []
- end
-
- def client_download_domain
- APP_CONFIG[:client_download_domain] || ''
- end
-
- def download_paths
- APP_CONFIG[:download_paths] || {}
- end
-
-end