Skip to content

Commit e4f42e8

Browse files
committed
Twigified modules/sanitycheck
This module is hereby twigified. For #499.
1 parent 0920331 commit e4f42e8

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{% extends "base.twig" %}
2+
{% set pagetitle = 'Sanity check' %}
3+
{% block content %}
4+
5+
<h2>{{ pagetitle }}</h2>
6+
7+
{% if errors %}
8+
<div style="border: 1px solid #800; background: #caa; margin: 1em; padding: .5em">
9+
<p><img class="float-r" src="/{{ baseurlpath }}resources/icons/silk/delete.png" alt="Failed" />
10+
These checks failed:</p>
11+
12+
<ul>
13+
{% for err in errors %}
14+
<li>{{ err }}</li>
15+
{% endfor %}
16+
</ul>
17+
18+
</div>
19+
{% endif %}
20+
21+
{% if info %}
22+
<div style="border: 1px solid #ccc; background: #eee; margin: 1em; padding: .5em">
23+
<p><img class="float-r" src="/{{ baseurlpath }}resources/icons/silk/accept.png" alt="OK" />
24+
These checks succeeded:</p>
25+
26+
<ul>
27+
{% for i in info %}
28+
<li>{{ i }}</li>
29+
{% endfor %}
30+
</ul>
31+
32+
</div>
33+
{% endif %}
34+
35+
{% endblock %}

0 commit comments

Comments
 (0)