From 28dd1969b38c55d4dba76c203b6eadb8f93820bd Mon Sep 17 00:00:00 2001
From: Silic0n Alph4 <89796310+silic0nalph4@users.noreply.github.com>
Date: Sat, 30 Oct 2021 18:29:36 +0100
Subject: [PATCH] Fix rules page formatting (#177)
The rules page uses a textarea to show lines break.
This commit replaces the textarea and uses the Twig
nl2br function to format the text for web browsers.
Fixes #176
---
system/templates/rules.html.twig | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/system/templates/rules.html.twig b/system/templates/rules.html.twig
index 83e0103f..55490047 100644
--- a/system/templates/rules.html.twig
+++ b/system/templates/rules.html.twig
@@ -1,8 +1,2 @@
-{% if constant('PAGE') == 'rules' %}
{{ config.lua.serverName }} Rules
-
-{% endif %}
+{{ getCustomPage('rules_on_the_page') | nl2br }}