summaryrefslogtreecommitdiff
path: root/billing/app/views/subscriptions/_subscription_details.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/subscriptions/_subscription_details.html.haml
parent0fe1678cd37c8e917cb28eed9eb28777d3a92283 (diff)
Some refactoring of displayed of past-due subscriptions.
Diffstat (limited to 'billing/app/views/subscriptions/_subscription_details.html.haml')
-rw-r--r--billing/app/views/subscriptions/_subscription_details.html.haml9
1 files changed, 3 insertions, 6 deletions
diff --git a/billing/app/views/subscriptions/_subscription_details.html.haml b/billing/app/views/subscriptions/_subscription_details.html.haml
index 27b00c7..fcf4bc4 100644
--- a/billing/app/views/subscriptions/_subscription_details.html.haml
+++ b/billing/app/views/subscriptions/_subscription_details.html.haml
@@ -5,12 +5,9 @@
ID:
= link_to subscription.id, user_subscription_path(@user, subscription.id)
Balance:
- - subscription_balance_currency = number_to_currency(subscription.balance)
- - if subscription.balance > 0
- %font{:color => "red"}
- = subscription_balance_currency
- - else
- = subscription_balance_currency
+ - color = (subscription.balance > 0) ? "red" : ""
+ %font{:color => color}
+ = number_to_currency(subscription.balance)
Bill on:
= subscription.billing_day_of_month
Start date: