summaryrefslogtreecommitdiff
path: root/billing/app/views/customer
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-06-11 12:16:13 -0700
committerAzul <azul@leap.se>2013-07-17 10:47:14 +0200
commitd3e4489cc4833c196eeef77f4fe0680c3f7e7a09 (patch)
treeeb71cac652850e60f9a7669aba8beb856a8459ea /billing/app/views/customer
parent888baf7539e131a6201dd6f53a152eeaeb8a0f94 (diff)
More cleanup of billing code.
Diffstat (limited to 'billing/app/views/customer')
-rw-r--r--billing/app/views/customer/edit.html.haml2
-rw-r--r--billing/app/views/customer/show.html.haml10
2 files changed, 9 insertions, 3 deletions
diff --git a/billing/app/views/customer/edit.html.haml b/billing/app/views/customer/edit.html.haml
index c2e5cb3..f9c1383 100644
--- a/billing/app/views/customer/edit.html.haml
+++ b/billing/app/views/customer/edit.html.haml
@@ -19,4 +19,4 @@
= link_to 'Change credit card', edit_credit_card_info_path(:id => @default_cc.token), :class => :btn
= hidden_field_tag :tr_data, @tr_data
= f.submit 'Save Customer Info', :class => :btn
-= link_to 'Cancel', show_customer_path(@braintree_data.id), :class=> :btn \ No newline at end of file
+= link_to 'Show Customer Information', show_customer_path(@braintree_data.id), :class=> :btn \ No newline at end of file
diff --git a/billing/app/views/customer/show.html.haml b/billing/app/views/customer/show.html.haml
index d385d98..8ef5517 100644
--- a/billing/app/views/customer/show.html.haml
+++ b/billing/app/views/customer/show.html.haml
@@ -8,7 +8,13 @@
= render :partial => "payments/transaction_details", :locals => {:transaction => t}
- counter += 1
= link_to 'Transaction History', payments_path
+%h3 Subscriptions
- if @active_subscription
- %h3 Active Subscription
= render :partial => "subscriptions/subscription_details", :locals => {:subscription => @active_subscription}
- = link_to 'All subscriptions', subscriptions_path \ No newline at end of file
+- else
+ %p
+ No active subscription
+ %p
+ = link_to 'subscribe to plan', new_subscription_path, :class => :btn
+%p
+ = link_to 'All subscriptions', subscriptions_path