templates/webfront.html

changeset 32
75f44d3063da
child 39
abc83875167e
equal deleted inserted replaced
31:02e7e1d73ebb 32:75f44d3063da
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="icon" href="../static/favicon.ico" />
5 <link rel="stylesheet" href="../static/style.css" />
6 <title>LDraw part verification tool</title>
7 </head>
8 <body>
9 <div class="top-form">
10 <h1>Check your part here</h1>
11 <form method="post" enctype="multipart/form-data">
12 <input type="file" name="file"/>
13 <input type="submit" />
14 </form>
15 </div>
16 <div class="report-container">
17
18 {% if report %}
19 <ul class="problems-list">
20 {% for problem in report['problems'] %}
21 <li class="problem-{{problem['type']}}">
22 <img
23 src="static/{{problem['type']}}.svg"
24 width="32" height="32"
25 class="problem-icon"
26 />
27 Line {{problem['line-number']}}: {{problem['message']}}
28 <br />
29 <span class="ldraw-code">{{problem['ldraw-code']}}</span>
30 </li>
31 {% endfor %}
32 </ul>
33 {% endif %}
34 {% if report and not report['problems'] %}
35 No problems whatsoever.
36 {% endif %}
37
38 </div>
39 </body>
40 </html>

mercurial