2014-11-25 14:09:29 -05:00
|
|
|
extends /templates/base
|
|
|
|
|
|
|
|
block content
|
|
|
|
|
|
|
|
ol.breadcrumb
|
|
|
|
li
|
|
|
|
a(href="/")
|
|
|
|
span.glyphicon.glyphicon-home
|
|
|
|
li
|
2014-11-25 16:26:04 -05:00
|
|
|
a(href="/account", data-i18n="nav.account")
|
2014-11-25 14:09:29 -05:00
|
|
|
li.active(data-i18n="account.payments")
|
|
|
|
|
2014-12-03 19:11:46 -05:00
|
|
|
if subscribed
|
|
|
|
button.end-subscription-button.btn.btn-lg.btn-warning(data-i18n="subscribe.unsubscribe") Unsubscribe
|
|
|
|
.payment-status(data-i18n="account.status_subscribed")
|
2014-12-04 16:07:00 -05:00
|
|
|
else if !me.isAnonymous()
|
2014-12-03 19:11:46 -05:00
|
|
|
button.start-subscription-button.btn.btn-lg.btn-success(data-i18n="subscribe.subscribe") Subscribe
|
|
|
|
if active
|
|
|
|
.payment-status(data-i18n="account.status_unsubscribed_active")
|
|
|
|
else
|
|
|
|
.payment-status(data-i18n="account.status_unsubscribed")
|
|
|
|
|
2014-11-25 14:09:29 -05:00
|
|
|
if payments.models.length
|
|
|
|
table.table.table-striped
|
|
|
|
tr
|
|
|
|
th(data-i18n="account.paid_on")
|
|
|
|
th(data-i18n="account.service")
|
|
|
|
th(data-i18n="account.price")
|
|
|
|
th(data-i18n="account.gems")
|
|
|
|
for payment in payments.models
|
|
|
|
- var service = payment.get('service')
|
|
|
|
tr
|
|
|
|
td= moment(payment.getCreationDate()).format('lll')
|
|
|
|
if service === 'ios'
|
|
|
|
td(data-i18n="account.service_apple")
|
|
|
|
td= payment.get('ios').localPrice
|
|
|
|
else
|
|
|
|
td(data-i18n="account.service_web")
|
|
|
|
td $#{(payment.get('amount')/100).toFixed(2)}
|
|
|
|
td= payment.get('gems')
|