Project

General

Profile

Feature #51408

Updated by Volker Theile almost 3 years ago

Sometimes there is the need to inform the Ceph Dashboard users about latest news and information. The plan is to allow the administrator to configure a MOTD (message of the day) via CLI which is shown when the user is logging into the UI.  

 The name was choosen by intention because it is not planned to support multiple messages displayed at the same time in the UI, this will overload the user experience and annoy the user. Instead, HTML can be used to structure the message. 

 The notification will be displayed at the top of the page, same like it is done by the already existing popup for the telemetry module. 

 A command line to configure the MOTD may look like: 

 $ ceph dashboard motd set <severity> <expire> <repetitive> <message> 
 $ ceph dashboard motd clear 

 where <severity> is something like 'info' | 'low' | 'high' which is represented by different colors in the UI. <expire> is the time when the notification expires. Until this time the noification is shown in the UI.    This can be e.g. '7d' and will be a unix timestamp internally like 'now + expire'. If <repetitive> is set TRUE, the notification will be displayed on every log in until it expires. If set to FALSE, it will only be displayed once. The <message> will contain the text to be displayed. HTML code will be supported, thus links to external sources are possible. 

Back