stable

Clone or download

Read-only

Users can hide or show again the project banner

Authenticated user now have the possibility to close the project banner. Once the user has closed the banner this information is remembered and the banner stay closed by default (unless the message is updated by a project admin). To test, you can set a message via the REST endpoint PUT /projects/:project_id/banner. Part of story #12264: display a custom banner inside project pages Change-Id: I5721f8f61fad17601ee45e251045ce149c32b4fc

Modified Files

Name
M src/common/layout/BaseLayout.php +2 −2 Go to diff View file
R src/www/scripts/project/banner/index.ts Go to diff View file
A src/www/scripts/project/banner/index-fp.ts +27 −0 Go to diff View file
A src/www/scripts/project/banner/project-banner-show-hide.test.ts +125 −0 Go to diff View file
A src/www/scripts/project/banner/project-banner-show-hide.ts +94 −0 Go to diff View file
M src/www/scripts/webpack.config.js +6 −2 Go to diff View file
M src/www/themes/BurningParrot/BurningParrotTheme.php +1 −1 Go to diff View file
M src/www/themes/BurningParrot/CurrentProjectNavbarInfoPresenter.php +5 −0 Go to diff View file
M src/www/themes/BurningParrot/css/includes/_project-banner.scss +14 −0 Go to diff View file
M src/www/themes/BurningParrot/templates/header.mustache +9 −0 Go to diff View file
M src/www/themes/FlamingParrot/ContainerPresenter.class.php +15 −1 Go to diff View file
M src/www/themes/FlamingParrot/FlamingParrot_Theme.class.php +2 −1 Go to diff View file
M src/www/themes/FlamingParrot/css/utils/_project-banner.scss +13 −0 Go to diff View file
M src/www/themes/FlamingParrot/templates/container.mustache +11 −2 Go to diff View file
M src/www/themes/common/tlp/src/index.d.ts +4 −73 Go to diff View file
A src/www/themes/common/tlp/src/js/dropdowns.d.ts +33 −0 Go to diff View file
A src/www/themes/common/tlp/src/js/fetch-wrapper.d.ts +46 −0 Go to diff View file
A src/www/themes/common/tlp/src/js/modal.d.ts +34 −0 Go to diff View file
A src/www/themes/common/tlp/src/js/popovers.d.ts +33 −0 Go to diff View file