Skip to content
Snippets Groups Projects
Commit 98dfa29c authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Replace CSENTRY_STAGING with CSENTRY_ENVIRONMENT

CSENTRY_ENVIRONMENT shall be set to production|staging|development
It can be used when sending errors to Sentry

JIRA INFRA-525
parent c49d4092
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ TEMPORARY_ICS_ID = "ZZ"
MAC_OUI = "02:42:42"
DOCUMENTATION_URL = "http://ics-infrastructure.pages.esss.lu.se/csentry/index.html"
CSENTRY_STAGING = False
CSENTRY_ENVIRONMENT = "staging"
AWX_URL = "https://torn.tn.esss.lu.se"
# AWX job templates
......
......@@ -15,8 +15,8 @@
{% block navbar %}
<!-- Fixed navbar -->
<div class="navbar fixed-top navbar-expand-lg navbar-light bg-light" role="navigation">
<a class="navbar-brand{% if config['CSENTRY_STAGING'] %} text-danger{% endif %}"
href="{{ url_for('main.index') }}">CSEntry{% if config['CSENTRY_STAGING'] %}-test{% endif %}</a>
<a class="navbar-brand{% if config['CSENTRY_ENVIRONMENT'] == "staging" %} text-danger{% endif %}"
href="{{ url_for('main.index') }}">CSEntry{% if config['CSENTRY_ENVIRONMENT'] == "staging" %}-test{% endif %}</a>
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment