From 85890ae3c0b6011ec712d8a0940cdfdf34c479db Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 5 Apr 2013 22:14:46 -0400 Subject: [PATCH] Adapt to using messages in django-leaflet-storage --- umap/templates/base.html | 10 +++++----- umap/templates/leaflet_storage/map_detail.html | 1 + umap/templatetags/umap_tags.py | 7 +++++++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/umap/templates/base.html b/umap/templates/base.html index 94146f1a..91528aa4 100644 --- a/umap/templates/base.html +++ b/umap/templates/base.html @@ -1,4 +1,4 @@ -{% load compress %} +{% load compress umap_tags %} @@ -24,11 +24,15 @@ {% block extra_head %} {% endblock extra_head %} + +
+
+
{% block header %} {% endblock %} @@ -37,7 +41,6 @@ {% endblock %} {% block bottom_js %} - {% endblock %} -
-
-
diff --git a/umap/templates/leaflet_storage/map_detail.html b/umap/templates/leaflet_storage/map_detail.html index c2be96e3..604a582c 100644 --- a/umap/templates/leaflet_storage/map_detail.html +++ b/umap/templates/leaflet_storage/map_detail.html @@ -16,4 +16,5 @@ {% block map_init %} {% include "leaflet_storage/map_init.html" %} {% endblock %} + {% include "leaflet_storage/map_messages.html" %} {% endblock %} \ No newline at end of file diff --git a/umap/templatetags/umap_tags.py b/umap/templatetags/umap_tags.py index 40403bdb..fa836940 100644 --- a/umap/templatetags/umap_tags.py +++ b/umap/templatetags/umap_tags.py @@ -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 ''