forked from rDrama/rDrama
namespace stuff
parent
77663e2cf6
commit
3b44aa9f6c
|
@ -211,16 +211,13 @@
|
||||||
<section id="site-settings-filters-section" class="settings-section-section">
|
<section id="site-settings-filters-section" class="settings-section-section">
|
||||||
<h5>Filters</h5>
|
<h5>Filters</h5>
|
||||||
<div class="settings-section rounded" id="site-settings-filters">
|
<div class="settings-section rounded" id="site-settings-filters">
|
||||||
|
{% set ns = namespace(slurtext='Enable if you would like to automatically replace slurs.', profanitytext='Enable if you would like to automatically replace slurs.')}
|
||||||
{# toggle_section(title, id, name, flag, below_text, disabled) #}
|
{# toggle_section(title, id, name, flag, below_text, disabled) #}
|
||||||
{% if FEATURES['USERS_PERMANENT_WORD_FILTERS'] and v.slurreplacer %}
|
{% if FEATURES['USERS_PERMANENT_WORD_FILTERS'] and v.slurreplacer %}
|
||||||
{% set slurtext = 'Enable if you would like to automatically replace slurs. <a class="danger" data-bs-toggle="modal" data-bs-target="#modal-slurreplacer">Make filter permanent for a badge!</a>' %}
|
{% set ns.slurtext = 'Enable if you would like to automatically replace slurs. <a class="danger" data-bs-toggle="modal" data-bs-target="#modal-slurreplacer">Make filter permanent for a badge!</a>' %}
|
||||||
{% else %}
|
|
||||||
{% set slurtext = 'Enable if you would like to automatically replace slurs.' %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if FEATURES['USERS_PERMANENT_WORD_FILTERS'] and v.profanityreplacer %}
|
{% if FEATURES['USERS_PERMANENT_WORD_FILTERS'] and v.profanityreplacer %}
|
||||||
{% set slurtext = 'Enable if you would like to automatically replace profanities. <a class="danger" data-bs-toggle="modal" data-bs-target="#modal-profanityreplacer">Make filter permanent for a badge!</a>' %}
|
{% set ns.profanitytext = 'Enable if you would like to automatically replace profanities. <a class="danger" data-bs-toggle="modal" data-bs-target="#modal-profanityreplacer">Make filter permanent for a badge!</a>' %}
|
||||||
{% else %}
|
|
||||||
{% set profanitytext = 'Enable if you would like to automatically replace profanities.' %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{common.toggle_section("Slur Replacer", "slurreplacer", v.slurreplacer, slurtext, FEATURES['USERS_PERMANENT_WORD_FILTERS'] and v.slurreplacer > 1)}}
|
{{common.toggle_section("Slur Replacer", "slurreplacer", v.slurreplacer, slurtext, FEATURES['USERS_PERMANENT_WORD_FILTERS'] and v.slurreplacer > 1)}}
|
||||||
{{common.toggle_section("Profanity Replacer", "profanityreplacer", v.slurreplacer, profanitytext, FEATURES['USERS_PERMANENT_WORD_FILTERS'] and v.profanityreplacer > 1)}}
|
{{common.toggle_section("Profanity Replacer", "profanityreplacer", v.slurreplacer, profanitytext, FEATURES['USERS_PERMANENT_WORD_FILTERS'] and v.profanityreplacer > 1)}}
|
||||||
|
@ -292,10 +289,10 @@
|
||||||
</div>
|
</div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
{% if v.slurreplacer and v.slurreplacer == 1 %}
|
{% if v.slurreplacer %}
|
||||||
{{permanent_filter_modal('slurreplacer', '/settings/profile', 'slurreplacer', 'Slur Replacer', 'Social Justice Berserker')}}
|
{{permanent_filter_modal('slurreplacer', '/settings/profile', 'slurreplacer', 'Slur Replacer', 'Social Justice Berserker')}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if v.profanityreplacer and v.profanityreplacer == 1 %}
|
{% if v.profanityreplacer %}
|
||||||
{{permanent_filter_modal('profanityreplacer', '/settings/profile', 'profanityreplacer', 'Profanity Replacer', 'Soapy-Mouthed Angel')}}
|
{{permanent_filter_modal('profanityreplacer', '/settings/profile', 'profanityreplacer', 'Profanity Replacer', 'Soapy-Mouthed Angel')}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue