From f4104aa875cdd871501fac94a22aa42b7df7e565 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 2 Oct 2023 09:10:24 +0300 Subject: [PATCH] dedup perma-slur and perma-profanities --- files/templates/settings/personal.html | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/files/templates/settings/personal.html b/files/templates/settings/personal.html index 5e428fea71..f7edf4823d 100644 --- a/files/templates/settings/personal.html +++ b/files/templates/settings/personal.html @@ -271,20 +271,16 @@
{% set ns = namespace(slurtext='Enable if you would like to automatically replace slurs.', profanitytext='Enable if you would like to automatically replace profanities.') %} {% if FEATURES['USERS_PERMANENT_WORD_FILTERS'] %} - {% if v.slurreplacer == 0 %} - {% set slurtext = 'Enable if you would like to automatically replace slurs. ' %} - {% elif v.slurreplacer == 1 %} - {% set slurtext = 'Enable if you would like to automatically replace slurs. ' %} - {% else %} + {% if v.slurreplacer > 1 %} {% set slurtext = "You've enabled the slur replacer permanently! ✊🏿" %} + {% else %} + {% set slurtext = 'Enable if you would like to automatically replace slurs. ' %} {% endif %} - {% if v.profanityreplacer == 0 %} - {% set profanitytext = 'Enable if you would like to automatically replace profanities. ' %} - {% elif v.profanityreplacer == 1 %} - {% set profanitytext = 'Enable if you would like to automatically replace profanities. ' %} - {% else %} + {% if v.profanityreplacer > 1 %} {% set profanitytext = "You've enabled the profanity replacer permanently! 😇" %} + {% else %} + {% set profanitytext = 'Enable if you would like to automatically replace profanities. ' %} {% endif %} {% endif %} {{common.toggle_section("Slur Replacer", "slurreplacerswitch", 'slurreplacer', v.slurreplacer, slurtext, FEATURES['USERS_PERMANENT_WORD_FILTERS'] and v.slurreplacer > 1)}}