Mercurial > farol
changeset 14:a52995b50ecc
Add a warning when saving to a private cache
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Tue, 30 Sep 2014 14:25:53 +0200 |
parents | d5265a0da13a |
children | f8d51aaac8bc |
files | farol/templates/base.j2 farol/templates/cache/save.j2 |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/farol/templates/base.j2 Tue Sep 30 14:25:25 2014 +0200 +++ b/farol/templates/base.j2 Tue Sep 30 14:25:53 2014 +0200 @@ -123,7 +123,7 @@ {% 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> + <div class="alert alert-danger"><strong>DEBUG:</strong> This application is running in debug mode. See the <a href="{{ url_for('about') }}#debug">about page</a> for more Details</div> {% endif %} </div> <footer class="footer container-fluid">
--- a/farol/templates/cache/save.j2 Tue Sep 30 14:25:25 2014 +0200 +++ b/farol/templates/cache/save.j2 Tue Sep 30 14:25:53 2014 +0200 @@ -28,6 +28,9 @@ {% block title %}Save{% endblock %} {% block content %} +{% if caching != 'global' %} + <div class="alert alert-warning" role="alert"><strong>Warning !</strong> You are about to save a document in your private cache. This cache is bound to your <em>browser session</em>, so that you won't be able to load your document again if you happen to close your browser. Read more about the <a class="alert-link" href="{{ url_for('about') }}#caching">caching system.</a></div> +{% endif %} <form role="form" method="POST"> {{ textinput("fname", "File name", "doc1", id_, required=True) }} <button class="btn btn-primary" type="submit">Save</button>