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")
|
|
|
|
|
2016-05-06 14:43:54 -04:00
|
|
|
- console.log('render', view.payments.size())
|
|
|
|
if view.payments.size()
|
2014-11-25 14:09:29 -05:00
|
|
|
table.table.table-striped
|
|
|
|
tr
|
2014-12-10 16:42:12 -05:00
|
|
|
th(data-i18n="account.purchased")
|
2014-11-25 14:09:29 -05:00
|
|
|
th(data-i18n="account.paid_on")
|
|
|
|
th(data-i18n="account.service")
|
|
|
|
th(data-i18n="account.price")
|
|
|
|
th(data-i18n="account.gems")
|
2015-10-21 20:11:10 -04:00
|
|
|
for payment in view.payments.models
|
2014-11-25 14:09:29 -05:00
|
|
|
- var service = payment.get('service')
|
|
|
|
tr
|
2016-05-06 14:43:54 -04:00
|
|
|
if payment.get('productID') === 'custom'
|
|
|
|
td= payment.get('description')
|
|
|
|
else if payment.get('productID')
|
2014-12-10 16:42:12 -05:00
|
|
|
td(data-i18n='account.gems')
|
|
|
|
else
|
|
|
|
td(data-i18n='subscribe.stripe_description')
|
|
|
|
td= moment(payment.getCreationDate()).format('l')
|
2014-11-25 14:09:29 -05:00
|
|
|
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)}
|
2016-05-06 14:43:54 -04:00
|
|
|
td= payment.get('gems') || '-'
|