diff --git a/static/style/main.css b/static/style/main.css index 2980c1d..f0c8ccd 100644 --- a/static/style/main.css +++ b/static/style/main.css @@ -70,6 +70,10 @@ pre { padding-left: 20px; } +.grayed { + color: gray; +} + .editor-toolbar { border-top: 0px solid #444; diff --git a/templates/main.html b/templates/main.html index 0bc4fe1..cff0fe2 100644 --- a/templates/main.html +++ b/templates/main.html @@ -26,9 +26,13 @@ Edit {% endif %} - {% autoescape false %} - {{ markdown(content, extensions=['extra']) }} - {% endautoescape %} + {% if content is not none %} + {% autoescape false %} + {{ markdown(content, extensions=['extra']) }} + {% endautoescape %} + {% else %} +
This document doesn't exist
+ {% endif %} {% else %}