Mercurial > farol > farol
comparison farol/templates/new.j2 @ 102:65341d05a8f8
Spawn a Modal when loading a doc, and another one is already loaded
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Tue, 14 Oct 2014 10:25:43 +0200 |
parents | 22d89f53e34c |
children | 07210df10edd |
comparison
equal
deleted
inserted
replaced
101:21a1a69b4525 | 102:65341d05a8f8 |
---|---|
169 </div> | 169 </div> |
170 | 170 |
171 {% if caching %} | 171 {% if caching %} |
172 {% call panel(heading="Load a document from the cache", title=4, collapsible=False) %} | 172 {% call panel(heading="Load a document from the cache", title=4, collapsible=False) %} |
173 <ul> | 173 <ul> |
174 {% for element in cache | sort %}<li><a href="{{ url_for('cache.load', element=element)}}">{{ element }}</a></li>{% endfor %} | 174 {% for element in cache | sort %} |
175 <li> | |
176 {% if has_current %} | |
177 <a href="#{{element}}_modal" data-toggle="modal">{{ element }}</a> | |
178 {% else %} | |
179 {{ POST_button(url_for('cache.load', element=element), text=element, style="btn-link") }} | |
180 {% endif %} | |
181 </li> | |
182 {% endfor %} | |
175 </ul> | 183 </ul> |
176 {% endcall %} | 184 {% endcall %} |
177 {% endif %} | 185 {% endif %} |
178 | 186 |
179 {% endblock %} | 187 {% endblock %} |