Skip to content

Commit

Permalink
YDA-5549: add banner indicating non-production environments
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Nov 30, 2023
1 parent e43cb65 commit 8d5367e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions general/templates/general/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
</head>

<body class="d-flex flex-column min-vh-100">
{% if config.get('YODA_ENVIRONMENT') == "development" %}<div class="sticky-top text-bg-danger text-center fw-bold lh-1 p-1">This is a development environment!</div>{% endif %}
{% if config.get('YODA_ENVIRONMENT') == "testing" %}<div class="sticky-top text-bg-warning text-center fw-bold lh-1 p-1">This is a testing environment!</div>{% endif %}
{% if config.get('YODA_ENVIRONMENT') == "acceptance" %}<div class="sticky-top text-bg-success text-center fw-bold lh-1 p-1">This is an acceptance environment!</div>{% endif %}
<header class="py-3">
<div class="container">
<div class="row">
Expand Down

0 comments on commit 8d5367e

Please sign in to comment.