templates/webfront.html

changeset 32
75f44d3063da
child 39
abc83875167e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/webfront.html	Wed Jan 31 14:34:23 2018 +0200
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <link rel="icon" href="../static/favicon.ico" />
+    <link rel="stylesheet" href="../static/style.css" />
+    <title>LDraw part verification tool</title>
+</head>
+<body>
+<div class="top-form">
+    <h1>Check your part here</h1>
+    <form method="post" enctype="multipart/form-data">
+        <input type="file" name="file"/>
+        <input type="submit" />
+    </form>
+</div>
+<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>
+{% endif %}
+{% if report and not report['problems'] %}
+No problems whatsoever.
+{% endif %}
+
+</div>
+</body>
+</html>

mercurial