add hold polls to /admin

master
Aevann 2024-02-03 03:10:22 +02:00
parent 53d75d928c
commit bbc7ba4de0
2 changed files with 13 additions and 3 deletions

View File

@ -585,7 +585,8 @@ BANNER_THREAD = 0
BADGE_THREAD = 0
SNAPPY_THREAD = 0
CHANGELOG_THREAD = 0
ADMIGGER_THREADS = {SIDEBAR_THREAD, BANNER_THREAD, BADGE_THREAD, SNAPPY_THREAD, CHANGELOG_THREAD}
POLL_THREAD = 0
ADMIGGER_THREADS = {SIDEBAR_THREAD, BANNER_THREAD, BADGE_THREAD, SNAPPY_THREAD, CHANGELOG_THREAD, POLL_THREAD}
MAX_IMAGE_SIZE_BANNER_RESIZED_MB = 2
MAX_IMAGE_AUDIO_SIZE_MB = 8
@ -648,7 +649,8 @@ if SITE in {'rdrama.net', 'staging.rdrama.net'}:
BADGE_THREAD = 37833
SNAPPY_THREAD = 37749
CHANGELOG_THREAD = 165657
ADMIGGER_THREADS = {SIDEBAR_THREAD, BANNER_THREAD, BADGE_THREAD, SNAPPY_THREAD, CHANGELOG_THREAD, 79285, 166300, 187078}
POLL_THREAD = 79285
ADMIGGER_THREADS = {SIDEBAR_THREAD, BANNER_THREAD, BADGE_THREAD, SNAPPY_THREAD, CHANGELOG_THREAD, POLL_THREAD, 166300, 187078}
TRUESCORE_MINIMUM = 10
@ -774,7 +776,8 @@ elif SITE == 'watchpeopledie.tv':
BADGE_THREAD = 52519
SNAPPY_THREAD = 67186
CHANGELOG_THREAD = 56363
ADMIGGER_THREADS = {SIDEBAR_THREAD, BANNER_THREAD, BADGE_THREAD, SNAPPY_THREAD, CHANGELOG_THREAD, 22937, 106665}
POLL_THREAD = 22937
ADMIGGER_THREADS = {SIDEBAR_THREAD, BANNER_THREAD, BADGE_THREAD, SNAPPY_THREAD, CHANGELOG_THREAD, POLL_THREAD, 106665}
MAX_VIDEO_SIZE_MB = 500
MAX_VIDEO_SIZE_MB_PATRON = 500

View File

@ -136,6 +136,13 @@
{% endif %}
</ul>
{% if POLL_THREAD and v.admin_level >= PERMS['USE_ADMIGGER_THREADS'] %}
<h4>Polls</h4>
<ul class="pb-3">
<li><a href="/post/{{POLL_THREAD}}">Hold Polls</a></li>
</ul>
{%- endif %}
{% 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"]) %}