2015-08-30 21:56:20 +00:00
|
|
|
mixin buyGemsDropdown()
|
|
|
|
|
.container-fluid
|
|
|
|
|
.row
|
|
|
|
|
.col-md-4.col-md-offset-4.alert.alert-info $5
|
|
|
|
|
=env.t('USD')
|
2015-12-08 20:56:33 +00:00
|
|
|
span#TotalGemPrice.dashed-underline(popover=env.t('donateText1'),popover-trigger='mouseenter',popover-placement='bottom') = +20 <span class="Pet_Currency_Gem1x inline-gems"/>
|
2015-08-30 21:56:20 +00:00
|
|
|
.container-fluid
|
|
|
|
|
.row
|
|
|
|
|
.col-md-10.col-md-offset-2
|
|
|
|
|
p
|
|
|
|
|
small.muted=env.t('paymentMethods')
|
|
|
|
|
a.purchase.btn.btn-primary(ng-click='Payments.showStripe({})')=env.t('card')
|
|
|
|
|
a.purchase(href='/paypal/checkout?_id={{user._id}}&apiToken={{user.apiToken}}')
|
|
|
|
|
img(src='https://www.paypalobjects.com/webstatic/en_US/i/buttons/pp-acceptance-small.png',alt='Pay now with Paypal')
|
|
|
|
|
a.purchase(ng-click="Payments.amazonPayments.init({type: 'single'})")
|
|
|
|
|
img(src='https://payments.amazon.com/gp/cba/button',alt='Pay now with Amazon Payments')
|
|
|
|
|
|
2014-01-29 21:18:13 +00:00
|
|
|
script(id='modals/buyGems.html', type='text/ng-template')
|
2013-10-12 23:47:49 +00:00
|
|
|
.modal-body
|
2014-01-28 00:34:22 +00:00
|
|
|
.buy-gems
|
2015-01-02 00:01:44 +00:00
|
|
|
+gemButton(true)
|
2015-08-30 21:56:20 +00:00
|
|
|
|
2015-08-30 21:57:55 +00:00
|
|
|
div(ng-if='user.purchased.plan.customerId && (user.purchased.plan.gemsBought >= User.user.purchased.plan.consecutive.gemCapExtra + Shared.planGemLimits.convCap)')
|
2015-08-30 21:56:20 +00:00
|
|
|
.panel.panel-default
|
|
|
|
|
.panel-body
|
|
|
|
|
h3=env.t('buyGemsGold')
|
|
|
|
|
p=env.t('maxBuyGems')
|
|
|
|
|
|
2015-08-30 21:57:55 +00:00
|
|
|
div(ng-if='user.purchased.plan.customerId && (user.purchased.plan.gemsBought < User.user.purchased.plan.consecutive.gemCapExtra + Shared.planGemLimits.convCap)')
|
2015-08-30 21:56:20 +00:00
|
|
|
.panel.panel-default
|
|
|
|
|
.panel-body
|
|
|
|
|
h3=env.t('buyGemsGold')
|
|
|
|
|
p=env.t('subGemPop')
|
|
|
|
|
.container-fluid
|
|
|
|
|
.row
|
|
|
|
|
.col-md-3
|
|
|
|
|
button.customize-option(ng-click='user.ops.purchase({params:{type:"gems",key:"gem"}})')
|
|
|
|
|
span.Pet_Currency_Gem.inline-gems
|
|
|
|
|
.badge.badge-success.stack-count {{Shared.planGemLimits.convCap + User.user.purchased.plan.consecutive.gemCapExtra - User.user.purchased.plan.gemsBought}}
|
|
|
|
|
p
|
|
|
|
|
| 20
|
|
|
|
|
span.shop_gold
|
|
|
|
|
.col-md-8
|
|
|
|
|
.popover.right.gem-count-popover
|
|
|
|
|
.arrow
|
|
|
|
|
.popover-content
|
|
|
|
|
p=env.t('buyGemsAllow1')
|
2015-12-08 20:56:33 +00:00
|
|
|
| {{Shared.planGemLimits.convCap + User.user.purchased.plan.consecutive.gemCapExtra - User.user.purchased.plan.gemsBought}}
|
2015-08-30 21:56:20 +00:00
|
|
|
=env.t('buyGemsAllow2')
|
2015-12-08 20:56:33 +00:00
|
|
|
div(ng-if='user.purchased.plan.customerId')
|
|
|
|
|
.well
|
|
|
|
|
h3=env.t('purchaseGemsSeparately')
|
|
|
|
|
+buyGemsDropdown()
|
2015-08-30 21:57:55 +00:00
|
|
|
div(ng-if='!user.purchased.plan.customerId')
|
2015-08-30 21:56:20 +00:00
|
|
|
.panel.panel-default
|
|
|
|
|
.panel-body
|
|
|
|
|
h3=env.t('purchaseGems')
|
|
|
|
|
.small
|
2015-12-08 20:56:33 +00:00
|
|
|
span.dashed-underline(popover=env.t('donateText3'),popover-trigger='mouseenter',popover-placement='bottom')
|
|
|
|
|
=env.t('donateText2')
|
2015-08-30 21:56:20 +00:00
|
|
|
+buyGemsDropdown()
|
|
|
|
|
|
2015-12-08 20:56:33 +00:00
|
|
|
.container-fluid
|
|
|
|
|
h3=env.t('freeGemsTitle')
|
|
|
|
|
p!=env.t('subFreeGemsHow')
|
|
|
|
|
|
2015-08-30 21:56:20 +00:00
|
|
|
.well
|
|
|
|
|
h3
|
|
|
|
|
.small=env.t('buyGemsGoldTitle')
|
|
|
|
|
h3=env.t('becomeSubscriber')
|
|
|
|
|
|
|
|
|
|
div(ng-include="'partials/options.settings.subscription.html'")
|
|
|
|
|
|
2013-10-12 23:47:49 +00:00
|
|
|
.modal-footer
|
2014-02-08 15:27:34 +00:00
|
|
|
button.btn.btn-default(ng-click='$close()')=env.t('cancel')
|