From e1622b6a10ed8c3c4af897f43a1dd5e8f85492e6 Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 12 Jun 2012 02:16:08 +0530 Subject: [PATCH] fix url / title meta stuff --- itf/insidepages/views.py | 3 ++- itf/templates/noel/base.html | 2 ++ itf/templates/noel/render_object.html | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/itf/insidepages/views.py b/itf/insidepages/views.py index c752ec5..97e2663 100755 --- a/itf/insidepages/views.py +++ b/itf/insidepages/views.py @@ -120,7 +120,8 @@ def render_object(request, module_slug): item_data = obj.insidepage_dict(request) else: #Should be a better way to tell the template a search returned no result obj = { - 'get_title': 'No Results Found' + 'get_title': 'No Results Found', + 'get_absolute_url': tab.get_absolute_url() } item_data = { 'html': 'The search query you entered did not return any results.' diff --git a/itf/templates/noel/base.html b/itf/templates/noel/base.html index 35075a9..6cfc8ee 100755 --- a/itf/templates/noel/base.html +++ b/itf/templates/noel/base.html @@ -2,9 +2,11 @@ +{% block meta %} +{% endblock %} {% block title %} {% endblock %} diff --git a/itf/templates/noel/render_object.html b/itf/templates/noel/render_object.html index dd2b593..4072873 100755 --- a/itf/templates/noel/render_object.html +++ b/itf/templates/noel/render_object.html @@ -7,6 +7,10 @@ +{% block meta %} + + +{% endblock %}