diff farol/templates/base.j2 @ 12:4219d6fb4c38

Implement three kind of caches
author Benoît Allard <benoit.allard@greenbone.net>
date Tue, 30 Sep 2014 12:18:52 +0200
parents 2ce3676c9b2e
children a52995b50ecc
line wrap: on
line diff
--- a/farol/templates/base.j2	Mon Sep 29 14:19:07 2014 +0200
+++ b/farol/templates/base.j2	Tue Sep 30 12:18:52 2014 +0200
@@ -90,17 +90,19 @@
               {% for format in ('cvrf', 'nasl', 'oval') %}<li><a href="{{ url_for('render', format_=format)}}">as {{ format | upper }}</a></li>{% endfor %}
             </ul>
           </li>
+          {% if caching %}
           <li>
-            <form action="{{ url_for('save') }}">
+            <form action="{{ url_for('cache.save') }}">
               <button class="btn btn-success navbar-btn"{% if not has_current %} disabled="disabled"{% endif %}>Save</button>
             </form>
           </li>
           <li class="dropdown">
             <a href="#" class="dropdown-toggle" data-toggle="dropdown">Cache <span class="caret"></span></a>
             <ul class="dropdown-menu" role="menu">
-              {% for element in cache | sort %}<li><a href="{{ url_for('load', element=element)}}">{{ element }}</a></li>{% endfor %}
+              {% for element in cache | sort %}<li><a href="{{ url_for('cache.load', element=element)}}">{{ element }}</a></li>{% endfor %}
             </ul>
           </li>
+          {% endif %}
         </ul>
       </div>{# /.navbar-collapse #}
     </div>{# /.container-fluid #}

http://farol.wald.intevation.org