From d062843e682909420563c153fd609e53edac895e Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 1 Mar 2024 00:00:06 +0200 Subject: [PATCH] add chat rules for WPD --- files/templates/header.html | 12 +++++++++++- files/templates/util/macros.html | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/files/templates/header.html b/files/templates/header.html index 895e3ba28..c54df8211 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -471,7 +471,17 @@ {% endif %}
  • {% if request.path == '/chat' %} -
    Users Online
    + {% if SITE_NAME == 'WPD' %} +
    Chat Rules
    + + {% endif %} + +
    Users Online




    {% elif has_sidebar %} diff --git a/files/templates/util/macros.html b/files/templates/util/macros.html index a8a160ccd..29bacf630 100644 --- a/files/templates/util/macros.html +++ b/files/templates/util/macros.html @@ -382,8 +382,18 @@ {% macro chat_users_list() %}
    + {% if SITE_NAME == 'WPD' %} +
    Chat Rules
    +
      +
    • Follow the rules mentioned on the sidebar.
    • +
    • Do not try to crash the chatroom with malicious code (CSS).
    • +
    • Do not send porn in chat.
    • +
    • Do not spam.
    • +
    + {% endif %} +
    Users Online
    -
    +
    {% endmacro %}