diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-01-21 15:56:44 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2022-01-21 16:52:03 -0800 |
commit | 8f36049cc3281ff9af761fefed4ed010db39c4e7 (patch) | |
tree | f52a3f2086a91c4656ab6e3dab56a0fb3cace65d /python/fatcat_web/templates/base.html | |
parent | 04b5d02a3dad37d66a73afb7ea6bf9c7a78427dd (diff) | |
download | fatcat-8f36049cc3281ff9af761fefed4ed010db39c4e7.tar.gz fatcat-8f36049cc3281ff9af761fefed4ed010db39c4e7.zip |
web: support for alert messages (site-wide)
Diffstat (limited to 'python/fatcat_web/templates/base.html')
-rw-r--r-- | python/fatcat_web/templates/base.html | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/python/fatcat_web/templates/base.html b/python/fatcat_web/templates/base.html index 5f507082..23cb5fa7 100644 --- a/python/fatcat_web/templates/base.html +++ b/python/fatcat_web/templates/base.html @@ -45,7 +45,7 @@ </head> <body style="margin-bottom: 130px;"> -<header class="ui fixed inverted menu"> +<header class="ui fixed inverted menu" style="height: 3em;"> <div class="ui container"> {% if config.FATCAT_DOMAIN.startswith('qa.') %} <div class="ui left corner orange small label"> @@ -96,6 +96,18 @@ </div> </header> +{% if config.FATCAT_ALERT_MESSAGE %} +<header class="ui fixed inverted yellow center aligned segment" style="margin-top: 3em; margin-bottom: 0px; padding: 0.5em;"> + <div class="ui container"> + <b style="color: black;"> + <i class="ui exclamation triangle icon"></i> + {{ config.FATCAT_ALERT_MESSAGE | safe }} + <i class="ui exclamation triangle icon"></i> + </b> + </div> +</header> +{% endif %} + {% block fullmain %} <!-- 4em top margin is "enough" --> <main class="ui main container" style="margin-top: 6em; margin-bottom: 2em;" {% block main_extra_attr %}{% endblock %}> |