Make the default navbar colour match the production navbar, rather than the dev navbar. Gives 500 errors in production a regular navbar, rather than a dev navbar.

- Legacy-Id: 12996
This commit is contained in:
Henrik Levkowetz 2017-03-12 12:11:06 +00:00
parent 0801c932be
commit e724ed9cdd

View file

@ -44,8 +44,7 @@
</head>
<body {% block bodyAttrs %}{%endblock%} data-group-menu-data-url="{% url 'ietf.group.views_ajax.group_menu_data' %}">
{% with debug_server_mode="production" %}
<nav class="navbar {% if server_mode and server_mode == "production" %}navbar-inverse{% else %}navbar-default{% endif %} navbar-fixed-top">
<nav class="navbar {% if server_mode and server_mode != "production" %}navbar-default{% else %}navbar-inverse{% endif %} navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
@ -57,10 +56,10 @@
<a class="navbar-brand" href="/">
<img alt="IETF Logo" src="{% static 'ietf/images/ietflogo-small-transparent.png' %}">
{% if not user.is_authenticated %}
{% if server_mode and server_mode == "production" %}
Datatracker
{% else %}
{% if server_mode and server_mode != "production" %}
<b><i>Development mode</i></b>
{% else %}
Datatracker
{% endif %}
{% endif %}
</a>
@ -85,7 +84,6 @@
</div>
</div>
</nav>
{% endwith %}
<div class="container-fluid">
{% comment %} {% bootstrap_messages %} {% endcomment %}
{% for message in messages %}