Including security review as a submodule - with patched for Yaffs.
[yaffs-website] / web / modules / contrib / security_review / templates / general_help.html.twig
diff --git a/web/modules/contrib/security_review/templates/general_help.html.twig b/web/modules/contrib/security_review/templates/general_help.html.twig
new file mode 100644 (file)
index 0000000..0b0168e
--- /dev/null
@@ -0,0 +1,42 @@
+{#
+/**
+ * @file
+ * Default general help page of Security Review.
+ *
+ * Available variables:
+ * - paragraphs: Array of paragraphs (strings) to show as an introduction.
+ * - items: Array of items (strings) to show in an unordered list after the
+ *   paragraphs.
+ * - checks: Array of check links grouped by their namespaces.
+ */
+#}
+
+{% for paragraph in paragraphs %}
+    <p>
+        {{ paragraph }}
+    </p>
+{% endfor %}
+<h3>
+    {% trans %}
+    Check-specific help
+    {% endtrans %}
+</h3>
+<p>
+    {% trans %}
+    Details and help on the security review checks. Checks are not always
+    perfectly correct in their procedure and result. Refer to drupal.org
+    handbook documentation if you are unsure how to make the recommended
+    alterations to your configuration or consult the module's README.txt for
+    support.
+    {% endtrans %}
+</p>
+{% if checks is not empty %}
+    {% for check_namespace in checks %}
+        <h4>{{ check_namespace.namespace }}</h4>
+        <ul>
+            {% for check_link in check_namespace.check_links %}
+                <li>{{ check_link }}</li>
+            {% endfor %}
+        </ul>
+    {% endfor %}
+{% endif %}