forked from MarseyWorld/MarseyWorld
hide under attack toggle since jannies cant use it anymore bc it get reverted almost instantly
parent
945228d9d8
commit
d23a77aea0
|
@ -134,7 +134,7 @@
|
|||
|
||||
{% if v.admin_level >= PERMS['SITE_SETTINGS'] %}
|
||||
{% for setting in SITE_SETTINGS.keys() %}
|
||||
{% if not (setting == "offline_mode" and v.admin_level < PERMS["SITE_OFFLINE_MODE"]) %}
|
||||
{% if setting != "under_attack" and not (setting == "offline_mode" and v.admin_level < PERMS["SITE_OFFLINE_MODE"]) %}
|
||||
<div class="custom-control custom-switch{% if loop.index > 1 %} mt-1{% endif %}" id="settings-{{setting}}-container">
|
||||
<input autocomplete="off" type="checkbox" class="custom-control-input" id="settings-{{setting}}-checkbox" {% if SITE_SETTINGS[setting] %}checked{% endif %} data-nonce="{{g.nonce}}" data-onchange="postToastSwitch(this, '/admin/site_settings/{{setting}}')">
|
||||
<label class="custom-control-label" for="settings-{{setting}}-checkbox">{{setting.replace('_', ' ').title()}}</label>
|
||||
|
|
Loading…
Reference in New Issue