18 {% if report %} |
18 {% if report %} |
19 <h1>{{name}}</h1> |
19 <h1>{{name}}</h1> |
20 {% if report['problems'] %} |
20 {% if report['problems'] %} |
21 <ul class="problems-list"> |
21 <ul class="problems-list"> |
22 {% for problem in report['problems'] %} |
22 {% for problem in report['problems'] %} |
23 <li class="problem-{{problem['type']}}"> |
23 <li class="problem-{{problem['severity']}}"> |
24 <img |
24 <img |
25 src="static/{{problem['type']}}.svg" |
25 src="static/{{problem['severity']}}.svg" |
26 width="32" height="32" |
26 width="32" height="32" |
27 class="problem-icon" |
27 class="problem-icon" |
28 /> |
28 /> |
29 Line {{problem['line-number']}}: {{problem['message']}} |
29 Line {{problem.line_number}}: {{problem.message_str}} |
30 <br /> |
30 <br /> |
31 <span class="ldraw-code">{{problem['ldraw-code']}}</span> |
31 <span class="ldraw-code">{{problem.ldraw_code}}</span> |
32 </li> |
32 </li> |
33 {% endfor %} |
33 {% endfor %} |
34 </ul> |
34 </ul> |
35 {% else %} |
35 {% else %} |
36 No problems whatsoever. |
36 No problems whatsoever. |