summaryrefslogtreecommitdiff
path: root/billing/app/views/subscriptions/_subscription_details.html.haml
blob: fcf4bc4aecd202d4e98a111b33403b5c58030e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
%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:
  - color = (subscription.balance > 0) ? "red" : ""
  %font{:color => color}
    = number_to_currency(subscription.balance)
  Bill on:
  = subscription.billing_day_of_month
  Start date:
  = subscription.first_billing_date
  Paid through:
  = subscription.paid_through_date
  Plan:
  = subscription.plan_id
  Price:
  = subscription.price
  - color = (subscription.status == 'Active') ? "green" : "red"
  Status:
  %font{:color => color}
    = subscription.status
  - # would be good to get plan name but not sure if that is possible?