Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
C
cl-site
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 16
    • Issues 16
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • clo
  • cl-site
  • Merge Requests
  • !76

Merged
Opened Nov 04, 2018 by Tim Plotnikov@tplotnikovDeveloper

Added announcement box

  • Overview 0
  • Commits 2
  • Pipelines 2
  • Changes 3

Hello everyone! As per issue #27 (closed) , 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.Снимок_экрана_2018-11-04_в_12.37.37
  2. Announcement showed - The announcement message is visible.Снимок_экрана_2018-11-04_в_12.36.57
  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 :)Снимок_экрана_2018-11-04_в_12.37.06

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.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: clo/cl-site!76
Source branch: master

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.