diff --git a/.gitignore b/.gitignore index 307c600db..10246fa70 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,7 @@ cache/ /songs/ __pycache__/ disablesignups -*rules.html +*_rules.html .idea/ **/.pytest_cache/ venv/ diff --git a/files/templates/CHRISTMAS/admin/rules.html b/files/templates/CHRISTMAS/admin/rules.html new file mode 100644 index 000000000..754f5ba69 --- /dev/null +++ b/files/templates/CHRISTMAS/admin/rules.html @@ -0,0 +1,31 @@ +{% extends "default.html" %} + +{% block pagetitle %}Edit {{'SITE_NAME' | app_config}} rules{% endblock %} + +{% block content %} + +
+
+
+
+

Edit rules

+

Your rules page will be publicly visible at {{'/rules'|full_link}}.

+

Supports markdown syntax.

+
+
+
+
+ + + +
+ +
+
+
+
+
+
+
+ +{% endblock %} \ No newline at end of file diff --git a/files/templates/CHRISTMAS/norules.html b/files/templates/CHRISTMAS/norules.html new file mode 100644 index 000000000..b7ac8eed5 --- /dev/null +++ b/files/templates/CHRISTMAS/norules.html @@ -0,0 +1,26 @@ +{% extends "default.html" %} + +{% block title %} +Not configured +{% endblock %} + +{% block pagetype %}message{% endblock %} + +{% block customPadding %}{% endblock %} + +{% block content %} +
+
+
+ +
+ +
+ +

You haven't set up your rules page yet

+
Your rules will be publicly available here.
+ Set up rules +
+
+
+{% endblock %} \ No newline at end of file diff --git a/files/templates/CHRISTMAS/rules.html b/files/templates/CHRISTMAS/rules.html new file mode 100644 index 000000000..67c7a125f --- /dev/null +++ b/files/templates/CHRISTMAS/rules.html @@ -0,0 +1,36 @@ +{% extends "default.html" %} + +{% block title %} +{{'SITE_NAME' | app_config}} Rules + +{% endblock %} + +{% block subHeader %} +
+
+
+
+

+ Rules +

+ + How to save yourself from the mop. + +
+
+
+{% endblock %} + +{% block content %} +
+
+ {{'SITE_NAME'|app_config}} Rules{% if v and v.admin_level == 6 %} + Edit rules + {% endif %} +
+ +
+ {{ rules | safe }} +
+
+{% endblock %} \ No newline at end of file