For project administrators
The banner is configurable by project administrators inside their projects.
Any project admin can set, update, remove a banner. There is no history of banner nor of setting / unsetting the banner.
The banner is limited to 1 line (no multiline) and limited formatting (bold, italic, links). It's pure html with only bold, italic and links (ckeditor for project admin).
In addition to web ui, there are 3 rest routes to set and delete the message
- GET /projects/:id/banner
- PUT /projects/:id/banner
- DELETE /projects/:id/banner
For end users
They see the banner by default but they have the possibility to collapse the message (see banner-collapsed mockup). When they click the small megaphon icon.
There are 2 variations proposed of the banner, to be discussed. The first one is more consistent with the global look'n feel, the second one is more visible (maybe too much). Feedback welcomed.
Collapse is stored in user preferences (backend).
When message is changed/set, user preferences are removed (message will appear for everyone).
Only the first line of the paragraph is displayed, if the paragraph needs to be splitted over multiple lines there is an ellipsis and a click on the message display the whole text.
Developement must be done on FlamingParrot & BurningParrot themes.