Merge pull request #425 from sharelatex/ja-disable-beta-program

Disable beta program pages
This commit is contained in:
James Allen 2018-03-23 11:51:46 +00:00 committed by GitHub
commit 45c853d30a
2 changed files with 17 additions and 14 deletions

View file

@ -261,9 +261,10 @@ module.exports = class Router
webRouter.post "/project/:Project_id/references/index", AuthorizationMiddlewear.ensureUserCanReadProject, ReferencesController.index webRouter.post "/project/:Project_id/references/index", AuthorizationMiddlewear.ensureUserCanReadProject, ReferencesController.index
webRouter.post "/project/:Project_id/references/indexAll", AuthorizationMiddlewear.ensureUserCanReadProject, ReferencesController.indexAll webRouter.post "/project/:Project_id/references/indexAll", AuthorizationMiddlewear.ensureUserCanReadProject, ReferencesController.indexAll
webRouter.get "/beta/participate", AuthenticationController.requireLogin(), BetaProgramController.optInPage # disable beta program while v2 is in beta
webRouter.post "/beta/opt-in", AuthenticationController.requireLogin(), BetaProgramController.optIn # webRouter.get "/beta/participate", AuthenticationController.requireLogin(), BetaProgramController.optInPage
webRouter.post "/beta/opt-out", AuthenticationController.requireLogin(), BetaProgramController.optOut # webRouter.post "/beta/opt-in", AuthenticationController.requireLogin(), BetaProgramController.optIn
# webRouter.post "/beta/opt-out", AuthenticationController.requireLogin(), BetaProgramController.optOut
webRouter.get "/confirm-password", AuthenticationController.requireLogin(), SudoModeController.sudoModePrompt webRouter.get "/confirm-password", AuthenticationController.requireLogin(), SudoModeController.sudoModePrompt
webRouter.post "/confirm-password", AuthenticationController.requireLogin(), SudoModeController.submitPassword webRouter.post "/confirm-password", AuthenticationController.requireLogin(), SudoModeController.submitPassword

View file

@ -118,17 +118,19 @@ block content
| !{moduleIncludes("userSettings", locals)} | !{moduleIncludes("userSettings", locals)}
hr //- The beta program doesn't make much sense to include while v2 is going
//- but we may want to add it back in later
h3 //- hr
| #{translate("sharelatex_beta_program")} //-
//- h3
if (user.betaProgram) //- | #{translate("sharelatex_beta_program")}
p.small //-
| #{translate("beta_program_already_participating")} //- if (user.betaProgram)
//- p.small
div //- | #{translate("beta_program_already_participating")}
a(id="beta-program-participate-link" href="/beta/participate") #{translate("manage_beta_program_membership")} //-
//- div
//- a(id="beta-program-participate-link" href="/beta/participate") #{translate("manage_beta_program_membership")}
hr hr