Add support for env var DEBSHOTS_ALERT_MESSAGE

If that environment variable is set then it will display on every page.
This commit is contained in:
Christoph Haas 2021-02-21 12:04:19 +01:00
parent 1a21007068
commit c6296b882d
3 changed files with 11 additions and 0 deletions

View file

@ -14,7 +14,10 @@ html
body
= render 'layouts/topbar'
#content.grid-container
- if Rails.configuration.alert_message
.callout.warning.alert-callout-subtle.radius =Rails.configuration.alert_message
#messages
= render 'layouts/messages'
= yield