From e4f42e873473fccd5f0e81a6e99110b6d6438f54 Mon Sep 17 00:00:00 2001
From: Hanne Moa <hanne.moa@uninett.no>
Date: Mon, 24 Oct 2016 13:51:03 +0200
Subject: [PATCH] Twigified modules/sanitycheck

This module is hereby twigified. For #499.
---
 modules/sanitycheck/templates/check.twig | 35 ++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 modules/sanitycheck/templates/check.twig

diff --git a/modules/sanitycheck/templates/check.twig b/modules/sanitycheck/templates/check.twig
new file mode 100644
index 000000000..ab53e5c5f
--- /dev/null
+++ b/modules/sanitycheck/templates/check.twig
@@ -0,0 +1,35 @@
+{% extends "base.twig" %}
+{% set pagetitle = 'Sanity check' %}
+{% block content %}
+
+<h2>{{ pagetitle }}</h2>
+
+{% if errors %}
+<div style="border: 1px solid #800; background: #caa; margin: 1em; padding: .5em">
+<p><img class="float-r" src="/{{ baseurlpath }}resources/icons/silk/delete.png" alt="Failed" />
+These checks failed:</p>
+
+<ul>
+{% for err in errors %}
+    <li>{{ err }}</li>
+{% endfor %}
+</ul>
+
+</div>
+{% endif %}
+
+{% if info %}
+<div style="border: 1px solid #ccc; background: #eee; margin: 1em; padding: .5em">
+<p><img class="float-r" src="/{{ baseurlpath }}resources/icons/silk/accept.png" alt="OK" />
+These checks succeeded:</p> 
+
+<ul>
+{% for i in info %}
+    <li>{{ i }}</li>
+{% endfor %}
+</ul>
+
+</div>
+{% endif %}
+
+{% endblock %}
-- 
GitLab