templates/webfront.html

changeset 61
15c95d3fcfd8
parent 39
abc83875167e
child 62
f0a6bf48b05e
--- a/templates/webfront.html	Tue Jun 04 23:58:30 2019 +0300
+++ b/templates/webfront.html	Wed Jun 05 00:33:50 2019 +0300
@@ -16,25 +16,26 @@
 <div class="report-container">
 
 {% if report %}
-    <ul class="problems-list">
-    {% for problem in report['problems'] %}
-        <li class="problem-{{problem['type']}}">
-            <img
-                src="static/{{problem['type']}}.svg"
-                width="32" height="32"
-                class="problem-icon"
-            />
-            Line {{problem['line-number']}}: {{problem['message']}}
-            <br />
-            <span class="ldraw-code">{{problem['ldraw-code']}}</span>
-        </li>
-    {% endfor %}
-    </ul>
+    <h1>{{name}}</h1>
+    {% if report['problems'] %}
+        <ul class="problems-list">
+        {% for problem in report['problems'] %}
+            <li class="problem-{{problem['type']}}">
+                <img
+                    src="static/{{problem['type']}}.svg"
+                    width="32" height="32"
+                    class="problem-icon"
+                />
+                Line {{problem['line-number']}}: {{problem['message']}}
+                <br />
+                <span class="ldraw-code">{{problem['ldraw-code']}}</span>
+            </li>
+        {% endfor %}
+        </ul>
+    {% else %}
+    No problems whatsoever.
+    {% endif %}
 {% endif %}
-{% if report and not report['problems'] %}
-No problems whatsoever.
-{% endif %}
-
 </div>
 </body>
 </html>

mercurial