mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #425 from sharelatex/ja-disable-beta-program
Disable beta program pages
This commit is contained in:
commit
45c853d30a
2 changed files with 17 additions and 14 deletions
|
@ -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/indexAll", AuthorizationMiddlewear.ensureUserCanReadProject, ReferencesController.indexAll
|
||||
|
||||
webRouter.get "/beta/participate", AuthenticationController.requireLogin(), BetaProgramController.optInPage
|
||||
webRouter.post "/beta/opt-in", AuthenticationController.requireLogin(), BetaProgramController.optIn
|
||||
webRouter.post "/beta/opt-out", AuthenticationController.requireLogin(), BetaProgramController.optOut
|
||||
# disable beta program while v2 is in beta
|
||||
# webRouter.get "/beta/participate", AuthenticationController.requireLogin(), BetaProgramController.optInPage
|
||||
# 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.post "/confirm-password", AuthenticationController.requireLogin(), SudoModeController.submitPassword
|
||||
|
||||
|
|
|
@ -118,17 +118,19 @@ block content
|
|||
|
||||
| !{moduleIncludes("userSettings", locals)}
|
||||
|
||||
hr
|
||||
|
||||
h3
|
||||
| #{translate("sharelatex_beta_program")}
|
||||
|
||||
if (user.betaProgram)
|
||||
p.small
|
||||
| #{translate("beta_program_already_participating")}
|
||||
|
||||
div
|
||||
a(id="beta-program-participate-link" href="/beta/participate") #{translate("manage_beta_program_membership")}
|
||||
//- The beta program doesn't make much sense to include while v2 is going
|
||||
//- but we may want to add it back in later
|
||||
//- hr
|
||||
//-
|
||||
//- h3
|
||||
//- | #{translate("sharelatex_beta_program")}
|
||||
//-
|
||||
//- if (user.betaProgram)
|
||||
//- p.small
|
||||
//- | #{translate("beta_program_already_participating")}
|
||||
//-
|
||||
//- div
|
||||
//- a(id="beta-program-participate-link" href="/beta/participate") #{translate("manage_beta_program_membership")}
|
||||
|
||||
hr
|
||||
|
||||
|
|
Loading…
Reference in a new issue