Mercurial > farol > farol
diff farol/templates/base.j2 @ 1:63b00c10ada8
Add Configuration support, warning when in DEBUG mode, and Deployment instruction
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Wed, 24 Sep 2014 15:04:19 +0200 |
parents | 4a9f23230eba |
children | bb7334ff114a |
line wrap: on
line diff
--- a/farol/templates/base.j2 Wed Sep 24 10:07:49 2014 +0200 +++ b/farol/templates/base.j2 Wed Sep 24 15:04:19 2014 +0200 @@ -117,6 +117,9 @@ <script>$("#error-popover").popover();</script> {% block content %}{% endblock %} </div> + {% if config.DEBUG and not config.DEBUG_SURE %} + <div class="alert alert-danger"><strong>DEBUG:</strong> This application is running in debug mode. See the <a href="{{ url_for('about', _anchor='debug')}}">about page</a> for more Details</div> + {% endif %} </div> <footer class="footer container-fluid"> <a class="pull-right" href="{{ url_for('about') }}">About ...</a>