summaryrefslogtreecommitdiff
path: root/app/views/common
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-05-27 16:32:50 +0200
committerAzul <azul@leap.se>2014-05-27 16:32:50 +0200
commitcc59ce53e52bf48d97de16d66012e8309bf98fe8 (patch)
tree8b32b2a2f791723fe93b5d73fcc104d6a9729355 /app/views/common
parent863863ff1fb6c9ab13b44248417ae1c5e57987af (diff)
add btn helper for link_to with .btn
Also translates the first arg if it's a symbol and adds more btn- classes if given as html_options[:type]
Diffstat (limited to 'app/views/common')
-rw-r--r--app/views/common/_action_buttons.html.haml6
-rw-r--r--app/views/common/_download_button.html.haml2
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/common/_action_buttons.html.haml b/app/views/common/_action_buttons.html.haml
index 398d384..266abe1 100644
--- a/app/views/common/_action_buttons.html.haml
+++ b/app/views/common/_action_buttons.html.haml
@@ -1,11 +1,11 @@
.home-buttons
.row-fluid.second
.login.span4
- %span.link= link_to icon('ok-sign') + t(:login), login_path, :class => 'btn'
+ %span.link= btn icon('ok-sign') + t(:login), login_path
%span.info= t(:login_info, default: "")
.signup.span4
- %span.link= link_to icon('user') + t(:signup), signup_path, :class => 'btn'
+ %span.link= btn icon('user') + t(:signup), signup_path
%span.info= t(:signup_info, default: "")
.help.span4
- %span.link= link_to icon('question-sign') + t(:get_help), new_ticket_path, :class => 'btn'
+ %span.link= btn icon('question-sign') + t(:get_help), new_ticket_path
%span.info= t(:support_info, default: "")
diff --git a/app/views/common/_download_button.html.haml b/app/views/common/_download_button.html.haml
index d6d7bde..9c26860 100644
--- a/app/views/common/_download_button.html.haml
+++ b/app/views/common/_download_button.html.haml
@@ -2,7 +2,7 @@
.row-fluid.first
.span2
.download.span8
- = link_to client_download_url, class: "btn btn-large btn-primary" do
+ = btn client_download_url, type: [:large, :primary] do
= big_icon('download')
= t(:download_bitmask)
.span2