summaryrefslogtreecommitdiff
path: root/billing/app/views/customers/show.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'billing/app/views/customers/show.html.haml')
-rw-r--r--billing/app/views/customers/show.html.haml8
1 files changed, 4 insertions, 4 deletions
diff --git a/billing/app/views/customers/show.html.haml b/billing/app/views/customers/show.html.haml
index 7416682..b36ebaf 100644
--- a/billing/app/views/customers/show.html.haml
+++ b/billing/app/views/customers/show.html.haml
@@ -2,7 +2,7 @@
= link_to 'Make Payment', new_payment_path, :class => :btn
%h3 Transaction History
= render(:partial => "transaction", :collection => @transactions) # show subset with link to see more
-- if @subscriptions.any?
- %h3 Active Subscriptions
- = # todo: won't really have multiple subscriptions
- = render(:partial => "subscription", :collection => @subscriptions) \ No newline at end of file
+- 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