templates/webfront.html

Sun, 23 Jun 2019 00:07:55 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Sun, 23 Jun 2019 00:07:55 +0300
changeset 71
4e24867a0110
parent 64
1c0884f5506e
child 72
62d0b5b9d797
permissions
-rw-r--r--

fix capitalization

32
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
1 <!DOCTYPE html>
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
2 <html>
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
3 <head>
39
abc83875167e fix stylesheet
Teemu Piippo <teemu@hecknology.net>
parents: 32
diff changeset
4 <link rel="icon" href="static/favicon.ico" />
abc83875167e fix stylesheet
Teemu Piippo <teemu@hecknology.net>
parents: 32
diff changeset
5 <link rel="stylesheet" href="static/style.css" />
32
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
6 <title>LDraw part verification tool</title>
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
7 </head>
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
8 <body>
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
9 <div class="top-form">
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
10 <h1>Check your part here</h1>
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
11 <form method="post" enctype="multipart/form-data">
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
12 <input type="file" name="file"/>
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
13 <input type="submit" />
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
14 </form>
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
15 </div>
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
16 <div class="report-container">
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
17
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
18 {% if report %}
61
15c95d3fcfd8 show the filename of the processed file in the report
Teemu Piippo <teemu@hecknology.net>
parents: 39
diff changeset
19 <h1>{{name}}</h1>
15c95d3fcfd8 show the filename of the processed file in the report
Teemu Piippo <teemu@hecknology.net>
parents: 39
diff changeset
20 {% if report['problems'] %}
15c95d3fcfd8 show the filename of the processed file in the report
Teemu Piippo <teemu@hecknology.net>
parents: 39
diff changeset
21 <ul class="problems-list">
15c95d3fcfd8 show the filename of the processed file in the report
Teemu Piippo <teemu@hecknology.net>
parents: 39
diff changeset
22 {% for problem in report['problems'] %}
62
f0a6bf48b05e Problem reporting revamp, program is now aware of its problem types
Teemu Piippo <teemu@hecknology.net>
parents: 61
diff changeset
23 <li class="problem-{{problem['severity']}}">
61
15c95d3fcfd8 show the filename of the processed file in the report
Teemu Piippo <teemu@hecknology.net>
parents: 39
diff changeset
24 <img
62
f0a6bf48b05e Problem reporting revamp, program is now aware of its problem types
Teemu Piippo <teemu@hecknology.net>
parents: 61
diff changeset
25 src="static/{{problem['severity']}}.svg"
61
15c95d3fcfd8 show the filename of the processed file in the report
Teemu Piippo <teemu@hecknology.net>
parents: 39
diff changeset
26 width="32" height="32"
15c95d3fcfd8 show the filename of the processed file in the report
Teemu Piippo <teemu@hecknology.net>
parents: 39
diff changeset
27 class="problem-icon"
15c95d3fcfd8 show the filename of the processed file in the report
Teemu Piippo <teemu@hecknology.net>
parents: 39
diff changeset
28 />
64
1c0884f5506e changed severity names to be better understood
Teemu Piippo <teemu@hecknology.net>
parents: 63
diff changeset
29 {{problem.severity}}:
1c0884f5506e changed severity names to be better understood
Teemu Piippo <teemu@hecknology.net>
parents: 63
diff changeset
30 Line {{problem.line_number}}:
1c0884f5506e changed severity names to be better understood
Teemu Piippo <teemu@hecknology.net>
parents: 63
diff changeset
31 {{problem.message_str}}
61
15c95d3fcfd8 show the filename of the processed file in the report
Teemu Piippo <teemu@hecknology.net>
parents: 39
diff changeset
32 <br />
62
f0a6bf48b05e Problem reporting revamp, program is now aware of its problem types
Teemu Piippo <teemu@hecknology.net>
parents: 61
diff changeset
33 <span class="ldraw-code">{{problem.ldraw_code}}</span>
61
15c95d3fcfd8 show the filename of the processed file in the report
Teemu Piippo <teemu@hecknology.net>
parents: 39
diff changeset
34 </li>
15c95d3fcfd8 show the filename of the processed file in the report
Teemu Piippo <teemu@hecknology.net>
parents: 39
diff changeset
35 {% endfor %}
15c95d3fcfd8 show the filename of the processed file in the report
Teemu Piippo <teemu@hecknology.net>
parents: 39
diff changeset
36 </ul>
15c95d3fcfd8 show the filename of the processed file in the report
Teemu Piippo <teemu@hecknology.net>
parents: 39
diff changeset
37 {% else %}
15c95d3fcfd8 show the filename of the processed file in the report
Teemu Piippo <teemu@hecknology.net>
parents: 39
diff changeset
38 No problems whatsoever.
15c95d3fcfd8 show the filename of the processed file in the report
Teemu Piippo <teemu@hecknology.net>
parents: 39
diff changeset
39 {% endif %}
63
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
40 <hr />
32
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
41 {% endif %}
63
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
42 <h1>List of reported issue types</h1>
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
43 <table>
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
44 <thead>
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
45 <tr>
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
46 <th>Name of issue</th>
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
47 <th>Severity</th>
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
48 <th>Example message</th>
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
49 </tr>
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
50 </thead>
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
51 <tbody>
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
52
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
53 {% for problem_type in problem_types %}
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
54 <tr>
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
55 <td>{{ problem_type.name }}</td>
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
56 <td>{{ problem_type.severity }}</td>
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
57 <td>{{ problem_type.placeholder_message() }}</td>
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
58 </tr>
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
59 {% endfor %}
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
60 </tbody>
8949af6a4279 added the list of issues onto the web frontend
Teemu Piippo <teemu@hecknology.net>
parents: 62
diff changeset
61 </table>
32
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
62 </div>
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
63 </body>
75f44d3063da Reworked web front, problems are now sorted by category as well as line number
Santeri Piippo
parents:
diff changeset
64 </html>

mercurial