summaryrefslogtreecommitdiff
path: root/billing/app/views/billing_admin
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-10-01 13:56:59 -0700
committerjessib <jessib@riseup.net>2013-10-01 13:56:59 -0700
commit0fe1678cd37c8e917cb28eed9eb28777d3a92283 (patch)
tree751e6eaaceef1d81a3bce020871a6b004f795f2d /billing/app/views/billing_admin
parent6b35a71db66e61c04747bf82feded014687cc528 (diff)
Allow admins to view past-due subscriptions.
Diffstat (limited to 'billing/app/views/billing_admin')
-rw-r--r--billing/app/views/billing_admin/show.html.haml17
1 files changed, 17 insertions, 0 deletions
diff --git a/billing/app/views/billing_admin/show.html.haml b/billing/app/views/billing_admin/show.html.haml
new file mode 100644
index 0000000..78843e5
--- /dev/null
+++ b/billing/app/views/billing_admin/show.html.haml
@@ -0,0 +1,17 @@
+- # todo: move into helper, as following 2 are pretty much identical
+%legend= t(:more_than_90_days_past_due)
+- if @past_due_atleast_90_days.empty?
+ = t(:none)
+- else
+ - @past_due_atleast_90_days.each do |past_due_subscription|
+ = render :partial => "subscriptions/subscription_details", :locals => {:subscription => past_due_subscription, :show_user => user_for_subscription(past_due_subscription)}
+
+%legend= t(:all_past_due)
+- if @all_past_due.empty?
+ = t(:none)
+- else
+ - @all_past_due.each do |past_due_subscription|
+ = render :partial => "subscriptions/subscription_details", :locals => {:subscription => past_due_subscription, :show_user => user_for_subscription(past_due_subscription)}
+
+%legend= t(:your_settings)
+= link_to 'view own billing settings', show_or_new_customer_link(current_user) \ No newline at end of file