fix subscribe cancel button not appearing

Fixes #3383

Show unsubscribe button logic was nested within the non-subscriber text.
This commit is contained in:
deilann
2014-04-30 13:02:54 -07:00
parent 540431ee8b
commit 8e83064ebb
+10 -10
View File
@@ -196,13 +196,13 @@ script(id='partials/options.settings.subscription.html',type='text/ng-template')
//-small.muted PayPal coming soon.
//a.btn.btn-warning(ng-click='paypalSubscribe()') PayPal
a.btn.btn-warning(href='/paypal/subscribe?_id={{user._id}}&apiToken={{user.apiToken}}') PayPal
div(ng-if='user.purchased.plan.customerId')
.well
p.lead
=env.t('subscribed')
|  
span.glyphicon.glyphicon-ok
div(ng-include="'partials/options.settings.subscription.perks.html'")
.btn.btn-sm.btn-danger(ng-click='cancelSubscription()')=env.t('cancelSub')
p
small.muted Unsubscribing removes subscriber perks (<a href='https://github.com/HabitRPG/habitrpg/issues/3180' target='_blank'>read more here</a>). We're working on persisting subscriber perks through a canceled plan's billing cycle, but for now be sure to open your mystery box before unsubscribing!
div(ng-if='user.purchased.plan.customerId')
.well
p.lead
=env.t('subscribed')
| &nbsp;
span.glyphicon.glyphicon-ok
div(ng-include="'partials/options.settings.subscription.perks.html'")
.btn.btn-sm.btn-danger(ng-click='cancelSubscription()')=env.t('cancelSub')
p
small.muted Unsubscribing removes subscriber perks (<a href='https://github.com/HabitRPG/habitrpg/issues/3180' target='_blank'>read more here</a>). We're working on persisting subscriber perks through a canceled plan's billing cycle, but for now be sure to open your mystery box before unsubscribing!