diff --git a/rhodecode/public/css/main.less b/rhodecode/public/css/main.less --- a/rhodecode/public/css/main.less +++ b/rhodecode/public/css/main.less @@ -439,6 +439,23 @@ ul.auth_plugins { //--- MODULES ------------------// +// Server Announcement +#server-announcement { + width: 95%; + margin: @padding auto; + padding: @padding; + border-width: 2px; + border-style: solid; + .border-radius(2px); + font-family: @text-bold; + + &.info { border-color: @alert4; background-color: @alert4-inner; } + &.warning { border-color: @alert3; background-color: @alert3-inner; } + &.error { border-color: @alert2; background-color: @alert2-inner; } + &.success { border-color: @alert1; background-color: @alert1-inner; } + &.neutral { border-color: @grey3; background-color: @grey6; } +} + // Fixed Sidebar Column .sidebar-col-wrapper { padding-left: @sidebar-all-width; diff --git a/rhodecode/templates/admin/settings/settings_global.html b/rhodecode/templates/admin/settings/settings_global.html --- a/rhodecode/templates/admin/settings/settings_global.html +++ b/rhodecode/templates/admin/settings/settings_global.html @@ -183,11 +183,15 @@ // important messages to all users of the RhodeCode Enterprise system. $(document).ready(function(e){ - // put your message below + + // EDIT - put your message below var message = "TYPE YOUR MESSAGE HERE"; - $('#body').prepend( - ('
_MSG_'+'
').replace('_MSG_', message) + // EDIT - choose "info"/"warning"/"error"/"success"/"neutral" as appropriate + var alert_level = "info"; + + $("#body").prepend( + ("
_MSG_"+"
").replace("_MSG_", message) ) })