summaryrefslogtreecommitdiff
path: root/engines/billing/app/views/customer/_customer_data.html.haml
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 /engines/billing/app/views/customer/_customer_data.html.haml
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 'engines/billing/app/views/customer/_customer_data.html.haml')
-rw-r--r--engines/billing/app/views/customer/_customer_data.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/billing/app/views/customer/_customer_data.html.haml b/engines/billing/app/views/customer/_customer_data.html.haml
index e9df040..439ae5c 100644
--- a/engines/billing/app/views/customer/_customer_data.html.haml
+++ b/engines/billing/app/views/customer/_customer_data.html.haml
@@ -13,4 +13,4 @@
%dt Expiration Date
%dd= @default_cc.expiration_date
- if current_user == @user
- = link_to t(:edit_saved_data), edit_customer_path(@user.id), :class => :btn
+ = btn t(:edit_saved_data), edit_customer_path(@user.id)