diff options
author | jessib <jessib@riseup.net> | 2013-10-01 13:56:59 -0700 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2013-10-01 13:56:59 -0700 |
commit | 0fe1678cd37c8e917cb28eed9eb28777d3a92283 (patch) | |
tree | 751e6eaaceef1d81a3bce020871a6b004f795f2d /billing/app/views/subscriptions | |
parent | 6b35a71db66e61c04747bf82feded014687cc528 (diff) |
Allow admins to view past-due subscriptions.
Diffstat (limited to 'billing/app/views/subscriptions')
-rw-r--r-- | billing/app/views/subscriptions/_subscription_details.html.haml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/billing/app/views/subscriptions/_subscription_details.html.haml b/billing/app/views/subscriptions/_subscription_details.html.haml index 6eda7ca..27b00c7 100644 --- a/billing/app/views/subscriptions/_subscription_details.html.haml +++ b/billing/app/views/subscriptions/_subscription_details.html.haml @@ -1,7 +1,16 @@ %p + - if local_assigns[:show_user] + User: + = link_to show_user.login, user_overview_path(show_user) + ID: = link_to subscription.id, user_subscription_path(@user, subscription.id) Balance: - = number_to_currency(subscription.balance) + - subscription_balance_currency = number_to_currency(subscription.balance) + - if subscription.balance > 0 + %font{:color => "red"} + = subscription_balance_currency + - else + = subscription_balance_currency Bill on: = subscription.billing_day_of_month Start date: |