summaryrefslogtreecommitdiff
path: root/billing/app/views/subscriptions/_subscription_details.html.haml
blob: 6eda7ca7ebd88f7cc3b9fb3676b4419fb3c3d1dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%p
  = link_to subscription.id, user_subscription_path(@user, subscription.id)
  Balance:
  = 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?