diff --git a/app/templates/account/payments-view.jade b/app/templates/account/payments-view.jade index f3338e862..532af43fb 100644 --- a/app/templates/account/payments-view.jade +++ b/app/templates/account/payments-view.jade @@ -10,7 +10,7 @@ block content a(href="/account", data-i18n="nav.account") li.active(data-i18n="account.payments") - if payments.models.length + if view.payments.models.length table.table.table-striped tr th(data-i18n="account.purchased") @@ -18,7 +18,7 @@ block content th(data-i18n="account.service") th(data-i18n="account.price") th(data-i18n="account.gems") - for payment in payments.models + for payment in view.payments.models - var service = payment.get('service') tr if payment.get('productID') diff --git a/app/views/account/PaymentsView.coffee b/app/views/account/PaymentsView.coffee index b355c4e42..b51d20e25 100644 --- a/app/views/account/PaymentsView.coffee +++ b/app/views/account/PaymentsView.coffee @@ -11,8 +11,3 @@ module.exports = class PaymentsView extends RootView super(options) @payments = new CocoCollection([], { url: '/db/payment', model: Payment, comparator:'_id' }) @supermodel.loadCollection(@payments, 'payments', {cache: false}) - - getRenderData: -> - c = super() - c.payments = @payments - c