mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-02 11:58:10 -05:00
Merge branch 'master' into production
This commit is contained in:
commit
dde45262b0
3 changed files with 4 additions and 4 deletions
|
@ -70,7 +70,7 @@ module.exports = class ProfileView extends View
|
||||||
context.allowedToEditJobProfile = @user and (me.isAdmin() or (context.myProfile && !me.get('anonymous')))
|
context.allowedToEditJobProfile = @user and (me.isAdmin() or (context.myProfile && !me.get('anonymous')))
|
||||||
context.profileApproved = @user?.get 'jobProfileApproved'
|
context.profileApproved = @user?.get 'jobProfileApproved'
|
||||||
context.progress = @progress ? @updateProgress()
|
context.progress = @progress ? @updateProgress()
|
||||||
@editing ?= context.progress < 0.8
|
@editing ?= context.myProfile and context.progress < 0.8
|
||||||
context.editing = @editing
|
context.editing = @editing
|
||||||
context.marked = marked
|
context.marked = marked
|
||||||
context.moment = moment
|
context.moment = moment
|
||||||
|
|
|
@ -48,7 +48,7 @@ setupPassportMiddleware = (app) ->
|
||||||
app.use(authentication.initialize())
|
app.use(authentication.initialize())
|
||||||
app.use(authentication.session())
|
app.use(authentication.session())
|
||||||
|
|
||||||
setupOneSecondDelayMiddlware = (app) ->
|
setupOneSecondDelayMiddleware = (app) ->
|
||||||
if(config.slow_down)
|
if(config.slow_down)
|
||||||
app.use((req, res, next) -> setTimeout((-> next()), 1000))
|
app.use((req, res, next) -> setTimeout((-> next()), 1000))
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ exports.setupMiddleware = (app) ->
|
||||||
setupMiddlewareToSendOldBrowserWarningWhenPlayersViewLevelDirectly app
|
setupMiddlewareToSendOldBrowserWarningWhenPlayersViewLevelDirectly app
|
||||||
setupExpressMiddleware app
|
setupExpressMiddleware app
|
||||||
setupPassportMiddleware app
|
setupPassportMiddleware app
|
||||||
setupOneSecondDelayMiddlware app
|
setupOneSecondDelayMiddleware app
|
||||||
|
|
||||||
###Routing function implementations###
|
###Routing function implementations###
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue