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:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user