summaryrefslogtreecommitdiff
path: root/billing/app/views/subscriptions/index.html.haml
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/subscriptions/index.html.haml
parent888baf7539e131a6201dd6f53a152eeaeb8a0f94 (diff)
More cleanup of billing code.
Diffstat (limited to 'billing/app/views/subscriptions/index.html.haml')
-rw-r--r--billing/app/views/subscriptions/index.html.haml7
1 files changed, 6 insertions, 1 deletions
diff --git a/billing/app/views/subscriptions/index.html.haml b/billing/app/views/subscriptions/index.html.haml
index c885f90..0e84619 100644
--- a/billing/app/views/subscriptions/index.html.haml
+++ b/billing/app/views/subscriptions/index.html.haml
@@ -1,2 +1,7 @@
+- active = false
- @subscriptions.each do |s|
- = render :partial => "subscription_details", :locals => {:subscription => s} \ No newline at end of file
+ - if s.status == 'Active'
+ - active = true
+ = render :partial => "subscription_details", :locals => {:subscription => s}
+- if !active
+ = link_to 'subscribe to plan', new_subscription_path, :class => :btn \ No newline at end of file