Tim Plotnikov (@tplotnikov) on GitLab, 2018-11-04.
Hello everyone!
As per issue #27 , i've added announcement box right under navigation bar.
It can be presented in 3 states:
1. No announcements - this is regular representation, without any changes.
2. Announcement showed - The announcement message is visible.
3. Announcement hidden - as you can see, there is close button in the message box which allows to discard the message. First, i was thinking about saving timestamp when user discarded the message and showing message again after some period of time + if message was updated. But it has too many corner cases, so i decided just to add this little button to bring the message back :)
P.S. If the message was updated, the announcement box will appear again no matter if it was closed or not.
P.P.S. In order to make this work, https://common-lisp.net/broadcast.html should be available. If someone wants to test it locally, make broadcast.html file in output/ folder and change announcementUrl var in layout/static/js/scripts.js.
0 commits, 0 files changed
Sign in to comment.