Adapt to using messages in django-leaflet-storage
This commit is contained in:
parent
4c0cfea739
commit
85890ae3c0
3 changed files with 13 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
{% load compress %}
|
||||
{% load compress umap_tags %}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
@ -24,11 +24,15 @@
|
|||
<![endif]-->
|
||||
{% block extra_head %}
|
||||
{% endblock extra_head %}
|
||||
<script src="{{ STATIC_URL }}storage/contrib/js/storage.ui.default.js"></script>
|
||||
<script src="{{ STATIC_URL }}storage/src/locale/fr.js"></script>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
</head>
|
||||
<body class="{% block body_class %}{% endblock %}">
|
||||
<div id="storage-ui-container"></div>
|
||||
<div id="storage-alert-container"></div>
|
||||
<div id="storage-tooltip-container"></div>
|
||||
|
||||
{% block header %}
|
||||
{% endblock %}
|
||||
|
@ -37,7 +41,6 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block bottom_js %}
|
||||
<script src="{{ STATIC_URL }}storage/contrib/js/storage.ui.default.js"></script>
|
||||
<script type="text/javascript">
|
||||
L.Storage.on('ui:ready', function () {
|
||||
function fn (e) {
|
||||
|
@ -62,8 +65,5 @@
|
|||
D.Event.on('.more_button', 'click', getMore);
|
||||
</script>
|
||||
{% endblock %}
|
||||
<div id="storage-ui-container"></div>
|
||||
<div id="storage-alert-container"></div>
|
||||
<div id="storage-tooltip-container"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -16,4 +16,5 @@
|
|||
{% block map_init %}
|
||||
{% include "leaflet_storage/map_init.html" %}
|
||||
{% endblock %}
|
||||
{% include "leaflet_storage/map_messages.html" %}
|
||||
{% endblock %}
|
|
@ -17,3 +17,10 @@ def paginate_querystring(context, page):
|
|||
qs = copy(context["request"].GET)
|
||||
qs["p"] = page
|
||||
return qs.urlencode()
|
||||
|
||||
|
||||
@register.filter
|
||||
def ipdb(what):
|
||||
import ipdb
|
||||
ipdb.set_trace()
|
||||
return ''
|
||||
|
|
Loading…
Reference in a new issue