Merge pull request #18437 from overleaf/rd-bs5-project-dashboard

Enable Bootstrap 5 to load for the project dashboard page

GitOrigin-RevId: 4aa74bd4fde98192b2e5b322bb777a8c8beae237
This commit is contained in:
Rebeka Dekany 2024-05-22 13:17:45 +02:00 committed by Copybot
parent 8d25fb1131
commit a0334898db
2 changed files with 7 additions and 0 deletions

View file

@ -440,6 +440,10 @@ async function projectListPage(req, res, next) {
)
}
// Get the user's assignment for the Bootstrap 5 split test, which populates
// splitTestVariants with a value for 'bootstrap-5' and allows Pug to read it
await SplitTestHandler.promises.getAssignment(req, res, 'bootstrap-5')
res.render('project/list-react', {
title: 'your_projects',
usersBestSubscription,

View file

@ -6,6 +6,9 @@ block entrypointVar
block vars
- var suppressNavContentLinks = true
block vars
- bootstrap5EnabledPage = true
block append meta
meta(name="ol-usersBestSubscription" data-type="json" content=usersBestSubscription)
meta(name="ol-notifications" data-type="json" content=notifications)