Merge branch 'master' into production

This commit is contained in:
Nick Winter 2014-06-08 11:52:32 -06:00
commit dde45262b0
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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###