mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 06:23:41 -04:00
Prompt for login on year subscription sale page
This commit is contained in:
parent
9c492a2d4b
commit
58ff820d7d
2 changed files with 3 additions and 3 deletions
app
|
@ -12,9 +12,7 @@ block content
|
|||
a(href="/account/subscription", data-i18n="account.subscription")
|
||||
li.active(data-i18n="account.sale") Sale
|
||||
|
||||
if me.get('anonymous')
|
||||
p(data-i18n="account_settings.not_logged_in")
|
||||
else if me.hasSubscription()
|
||||
if me.hasSubscription()
|
||||
h1(data-i18n="subscribe.sale_already_subscribed")
|
||||
span.spr(data-i18n="subscribe.sale_continue")
|
||||
a(href="/play", data-i18n="subscribe.sale_click_here")
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
RootView = require 'views/core/RootView'
|
||||
template = require 'templates/account/subscription-sale-view'
|
||||
AuthModal = require 'views/core/AuthModal'
|
||||
stripeHandler = require 'core/services/stripe'
|
||||
utils = require 'core/utils'
|
||||
|
||||
|
@ -28,6 +29,7 @@ module.exports = class SubscriptionSaleView extends RootView
|
|||
c
|
||||
|
||||
onPayButton: ->
|
||||
return @openModalView new AuthModal() if me.isAnonymous()
|
||||
@state = undefined
|
||||
@stateMessage = undefined
|
||||
@render()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue