diff options
author | jessib <jessib@riseup.net> | 2013-10-15 11:10:31 -0700 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2013-10-15 11:10:31 -0700 |
commit | a6f196d0bfe632408db7350829507478b825b1a8 (patch) | |
tree | ba2de17a08c11619a74a0be6cf4c3939a2b9f223 /core/app/views/common/_download_for_os.html.haml | |
parent | 0acbf6a158f149c1f4273bde0cfca47547e080f8 (diff) | |
parent | 8e5aa5093ab6e67db4f603a44bb7027245b91a21 (diff) |
Merge pull request #99 from azul/feature/os-detection
detect os in browser and show proper download link
Diffstat (limited to 'core/app/views/common/_download_for_os.html.haml')
-rw-r--r-- | core/app/views/common/_download_for_os.html.haml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/app/views/common/_download_for_os.html.haml b/core/app/views/common/_download_for_os.html.haml new file mode 100644 index 0000000..b7c88ba --- /dev/null +++ b/core/app/views/common/_download_for_os.html.haml @@ -0,0 +1,16 @@ +- os = download_for_os +%div{:class => "os-#{os}"} + %span.link + - btn_class = (os == "other") ? "disabled" : "btn-primary" + = link_to client_download_url(os), :class => "btn btn-large #{btn_class}" do + .pull-left= huge_icon('mask') + = t(:download_client) + %br/ + %small= I18n.t("os.#{os}") + %span.info + = t(:client_info, :provider => content_tag(:b,APP_CONFIG[:domain])).html_safe + %br/ + - if os == "other" + = t(:all_downloads_info, :clients => alternative_client_links(os).to_sentence).html_safe + - else + = t(:other_downloads_info, :clients => alternative_client_links(os).to_sentence).html_safe |