Port to the new Page Banner support, and add can-close settings.
Review Request #14560 — Created Aug. 7, 2025 and updated
When run on Review Board 7.1+, the Message of the Day banner will now
make use of the new standard Page Banner UI component, which takes care
of all the presentation of banners. This creates a more consistent look
and helps make this extension more future-proof.When run on older versions, the banner will continue to handle all
presentation and placement as before.This is implemented as two entirely separate
TemplateHooks
. They
calculate similar state, but behave a bit differently under the hood,
particularly with the visibility state.There's also a new feature allowing administrators to control whether
users can close this banner. This can be turned off if the banner is
something that needs to always be seen (such as important user
instructions, legal notices, outages, etc.).This will all be for the upcoming 4.0 release.
Tested on Review Board 7.0 and 7.1, with and without the option
for letting users close banners.Tested the closing and should-render functionality on both.
Inspected the generated HTML and scripts for all verson/setting
combinations.
Summary | ID |
---|---|
f3745e0d3b0458a81cc3089d9103272bb661bb3c |
Description | From | Last Updated |
---|---|---|
Did you forget to add the scripts.html file? |
|
|
This needs a Version Changed for the rename, and shouldn't we keep the old name around and use housekeeping's "class … |
![]() |
|
Nit: we only use this variable in one place (after getting rid of the debug print), we could instead inline … |
![]() |
|
Leftover debug code. |
![]() |
|
Nit: we only use this variable in one place, we could instead inline this in the dict definition. |
![]() |
- Change Summary:
-
Added the missing
scripts.html
. - Commits:
-
Summary ID effb44dedb9692e433eec6c3d6edb3e09b936890 f3745e0d3b0458a81cc3089d9103272bb661bb3c
Checks run (2 succeeded)

-
-
This needs a Version Changed for the rename, and shouldn't we keep the old name around and use housekeeping's "class moved" decorator? I know these are internal to the MOTD extension but aren't they technically still public.
-
Nit: we only use this variable in one place (after getting rid of the debug print), we could instead inline this in the dict definition.
-
-