Adding custom message in banner
Review Request #8824 — Created March 18, 2017 and submitted
Read-only mode is a feature that can be enabled by the admin to disable
most backend changes by regular users. This commit adds a custom
message for the banner when in read-only mode. The message can be
optionally added through the admin panel right under where the admin
would enable/disable read-only mode.
Ran js-tests - passed
Ran python tests - most passed, some failures fixed in future commit
Checked changing value in admin panel reflects in banner
Description | From | Last Updated |
---|---|---|
Mind wrapping your description & testing done at 72 characters? |
brennie | |
Care to add the keys to this? |
brennie | |
How about "A custom message displayed when the site is in read-only mode." |
brennie | |
<b> is deprecated. Since you're making this a header, how about just using h2 (since its not the main header … |
brennie | |
"dictionary will" |
brennie | |
:py:class:`bool` |
brennie | |
Blank line between these. |
brennie | |
string is not a type, you mean unicode. Also, this won't auto link to the correct type. Use: :py:class:`unicode` |
brennie |
Checks run (2 succeeded, 1 failed with error)
- Summary:
-
[WIP] Read-Only Mode: Looking into custom message in bannerRead-Only Mode: Adding custom message in banner
- Description:
-
~ Looking into adding a custom message for the banner when in read-only mode. An alternative may be to add a datetime field in admin panel and generate a message based on when the read-only mode should be over by.
~ Read-only mode is a feature that can be enabled by the admin to disable most backend changes by regular users. This commit adds a custom message for the banner when in read-only mode. The message can be optionally added through the admin panel right under where the admin would enable/disable read-only mode.
- Testing Done:
-
+ Ran js-tests - passed
+ Ran python tests - most passed, some failures fixed in future commit + Checked changing value in admin panel reflects in banner
- Change Summary:
-
Update according to comments + fix description line wrapping
- Description:
-
~ Read-only mode is a feature that can be enabled by the admin to disable most backend changes by regular users. This commit adds a custom message for the banner when in read-only mode. The message can be optionally added through the admin panel right under where the admin would enable/disable read-only mode.
~ Read-only mode is a feature that can be enabled by the admin to disable
+ most backend changes by regular users. This commit adds a custom + message for the banner when in read-only mode. The message can be + optionally added through the admin panel right under where the admin + would enable/disable read-only mode.