From cc2e0fd1cb9dbf1dd62e88ddc9f419144a6fccfb Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 19 May 2017 08:16:41 +0100 Subject: [PATCH] =?UTF-8?q?Show=20spreadsheet=20before=20template=20if=20t?= =?UTF-8?q?here=E2=80=99s=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s easier to work out what the errors are in your file if you can see the big red error message right next to the contents of your file. When users get errors they tend to go back and forth between the error message and the view of the file, not the message and the template preview. --- app/templates/views/check.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/templates/views/check.html b/app/templates/views/check.html index 933bda753..bb9c4012c 100644 --- a/app/templates/views/check.html +++ b/app/templates/views/check.html @@ -150,7 +150,9 @@ {% endif %} - {{ template|string }} + {% if not errors %} + {{ template|string }} + {% endif %}
{% if errors %} @@ -234,4 +236,9 @@

{% endif %} + {% if errors %} +

Preview of {{ template.name }}

+ {{ template|string }} + {% endif %} + {% endblock %}