add a danger message if visitor is not using SSL

This commit is contained in:
Thomas Waldmann 2013-11-02 01:09:24 +01:00
parent 87b3711fd5
commit b45ae25b0a

View File

@ -71,6 +71,12 @@
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<div id="message_box"> <div id="message_box">
{% if not request.is_secure %}
<div class="alert alert-danger">
<button type="button" class="close" data-dismiss="alert">&times;</button>
Your connection is unsecure, please use our <a href="https://{{ WWW_HOST }}/">secure https site</a>.
</div>
{% endif %}
{% if messages %} {% if messages %}
{% for message in messages %} {% for message in messages %}
<div class="alert alert-{{ message.tags }}"> <div class="alert alert-{{ message.tags }}">