summaryrefslogtreecommitdiffstats
path: root/flatpages/views.py
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2011-08-08 10:58:50 +0100
committerMartin Green <martin.speleo@gmail.com>2011-08-08 10:58:50 +0100
commite85c386375898845a87885d1bad7e2c38c8f23b5 (patch)
tree2fd770081ea7592062c7f4a4668a9f13bd6c3520 /flatpages/views.py
parentc66ecc4d7fd4436a34700f7c1d4a2d879e8aabc0 (diff)
downloadtroggle-e85c386375898845a87885d1bad7e2c38c8f23b5.tar.gz
troggle-e85c386375898845a87885d1bad7e2c38c8f23b5.tar.bz2
troggle-e85c386375898845a87885d1bad7e2c38c8f23b5.zip
=Make a common base for expoweb pages. Ignore any header information in expoweb except titles.
Diffstat (limited to 'flatpages/views.py')
-rw-r--r--flatpages/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/flatpages/views.py b/flatpages/views.py
index a080437..6279f4d 100644
--- a/flatpages/views.py
+++ b/flatpages/views.py
@@ -72,7 +72,7 @@ def flatpage(request, path):
if re.search(r"iso-8859-1", html):
body = unicode(body, "iso-8859-1")
body.strip
- return render_with_context(request, 'flatpage.html', {'editable': True, 'path': path, 'head': head, 'body': body, 'homepage': (path == "index.htm")})
+ return render_with_context(request, 'flatpage.html', {'editable': True, 'path': path, 'title': title, 'body': body, 'homepage': (path == "index.htm")})
else:
return HttpResponse(o.read(), mimetype=getmimetype(path))