diff --git a/core/views/expo.py b/core/views/expo.py index 54c166c..0fc86e2 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -129,7 +129,7 @@ def expowebpage(request, expowebpath, path): with open(os.path.normpath(expowebpath / path), "r") as o: html = o.read() except: - return HttpResponse(default_head + '

UTF-8 Parsing Failure:
Page could not be parsed using UTF-8:
failure detected in expowebpage in views.expo.py

Please edit this :expoweb: page to replace dubious umlauts with HTML entitiies in the expected code. UTF-8 Parsing Failure:
Page could not be parsed using UTF-8:
failure detected in expowebpage in views.expo.py Please edit this :expoweb: page to replace dubious umlauts and £ symbols with correct HTML entities e.g. &pound;;. ]*)>(.*)<\s*/head\s*>(.*)<\s*body([^>]*)>(.*)<\s*/body\s*>(.*)', html, re.DOTALL + re.IGNORECASE) if m: diff --git a/templates/expopage.html b/templates/expopage.html index fab3bc1..912fe5a 100644 --- a/templates/expopage.html +++ b/templates/expopage.html @@ -11,6 +11,8 @@ {% else %} {% if not has_menu %} {% include "menu.html" %} + {% else %} + {% if editable %}
  • Edit this Page
  • {% endif %} {% endif %} {% endif %} {% endblock %}