summaryrefslogtreecommitdiff
path: root/billing/app/views/billing_admin/show.html.haml
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-10-03 12:06:57 -0700
committerjessib <jessib@riseup.net>2013-10-03 12:06:57 -0700
commite4d422142fb2db2153916bed5826651e8418b7a0 (patch)
tree2bf960fe71ccae6aa1ff4951ddcce1577f3afdc4 /billing/app/views/billing_admin/show.html.haml
parent0fe1678cd37c8e917cb28eed9eb28777d3a92283 (diff)
Some refactoring of displayed of past-due subscriptions.
Diffstat (limited to 'billing/app/views/billing_admin/show.html.haml')
-rw-r--r--billing/app/views/billing_admin/show.html.haml14
1 files changed, 3 insertions, 11 deletions
diff --git a/billing/app/views/billing_admin/show.html.haml b/billing/app/views/billing_admin/show.html.haml
index 78843e5..a275a5e 100644
--- a/billing/app/views/billing_admin/show.html.haml
+++ b/billing/app/views/billing_admin/show.html.haml
@@ -1,17 +1,9 @@
-- # todo: move into helper, as following 2 are pretty much identical
+- # todo: move into helper, as following 2 are pretty much identical (show_set_user_subscriptions is started)
%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)}
+= show_set_user_subscriptions(@past_due_atleast_90_days)
%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)}
+= show_set_user_subscriptions(@all_past_due)
%legend= t(:your_settings)
= link_to 'view own billing settings', show_or_new_customer_link(current_user) \ No newline at end of file