summaryrefslogtreecommitdiff
path: root/billing/app/views/subscriptions/_subscription_details.html.haml
blob: 3a06c2065ee74a57cec79c125b37d6062c7962c8 (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:
  = number_to_currency(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?