summaryrefslogtreecommitdiff
path: root/billing/app/helpers/billing_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'billing/app/helpers/billing_helper.rb')
-rw-r--r--billing/app/helpers/billing_helper.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/billing/app/helpers/billing_helper.rb b/billing/app/helpers/billing_helper.rb
index 1dd3f38..68ed5b8 100644
--- a/billing/app/helpers/billing_helper.rb
+++ b/billing/app/helpers/billing_helper.rb
@@ -46,4 +46,17 @@ module BillingHelper
end
+ def show_set_user_subscriptions(set)
+ if set.empty?
+ return t(:none)
+ else
+ subscriptions_to_display = ''
+ set.each do |past_due_subscription|
+ subscriptions_to_display += render :partial => "subscriptions/subscription_details", :locals => {:subscription => past_due_subscription, :show_user => user_for_subscription(past_due_subscription)}
+ end
+ subscriptions_to_display.html_safe
+ end
+ end
+
+
end