2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 03:17:12 +00:00

=Make a common base for expoweb pages. Ignore any header information in expoweb except titles.

This commit is contained in:
Martin Green
2011-08-08 10:58:50 +01:00
parent c66ecc4d7f
commit e85c386375
5 changed files with 24 additions and 16 deletions

View File

@@ -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))