2022-05-04 23:09:46 +00:00
{% extends "default.html" %}
2022-11-21 08:52:22 +00:00
{% block pagetitle %}Admin Home{% endblock %}
2022-10-23 15:24:38 +00:00
{% block customPadding %}px-3{% endblock %}
2022-05-04 23:09:46 +00:00
{% block content %}
2022-12-29 08:35:30 +00:00
< h3 class = "py-2" > Admin Tools< / h3 >
2022-06-19 12:34:10 +00:00
2023-10-18 18:17:50 +00:00
{% if v.admin_level >= PERMS['INSERT_TRANSACTION'] %}
< h4 > Transactions< / h4 >
< ul >
< li > < a href = "/admin/insert_transaction" > Insert Transaction< / a > < / li >
< / ul >
{%- endif %}
2023-09-17 20:58:08 +00:00
{% if v.admin_level >= PERMS['ORGIES'] %}
< h4 > Orgies< / h4 >
< ul >
2023-10-13 15:56:12 +00:00
< li > < a href = "/admin/orgies" > Schedule/Stop Orgy< / a > < / li >
2023-09-17 20:58:08 +00:00
< / ul >
{%- endif %}
2023-03-05 10:03:21 +00:00
{% if v.admin_level >= PERMS['USE_ADMIGGER_THREADS'] and (SITE_NAME == 'rDrama' or SIDEBAR_THREAD or BANNER_THREAD or BADGE_THREAD or SNAPPY_THREAD) %}
2022-09-11 07:11:10 +00:00
< h4 > Add Stuff< / h4 >
< ul >
2023-03-05 10:03:21 +00:00
{% if v.admin_level >= PERMS['USE_ADMIGGER_THREADS'] %}
2022-10-06 06:18:08 +00:00
{% if SIDEBAR_THREAD %}
< li > < a href = "/post/{{SIDEBAR_THREAD}}" > Add Sidebar Images< / a > < / li >
{% endif %}
{% if BANNER_THREAD %}
< li > < a href = "/post/{{BANNER_THREAD}}" > Add Banners< / a > < / li >
{% endif %}
{% if BADGE_THREAD %}
< li > < a href = "/post/{{BADGE_THREAD}}" > Add Badges< / a > < / li >
{% endif %}
2023-03-05 10:03:21 +00:00
{% if SNAPPY_THREAD %}
< li > < a href = "/post/{{SNAPPY_THREAD}}" > Add Snappy Quotes< / a > < / li >
{% endif %}
2022-09-11 07:11:10 +00:00
{% endif %}
2023-03-05 10:03:21 +00:00
2022-09-17 15:08:24 +00:00
{% if SITE_NAME == 'rDrama' %}
2023-02-18 21:07:37 +00:00
{% if v.admin_level >= PERMS['MODERATE_PENDING_SUBMITTED_ASSETS'] %}
2023-03-18 13:34:04 +00:00
< li > < a href = "/submit/emojis" > Approve or Reject Emojis< / a > < / li >
2023-02-18 21:07:37 +00:00
< li > < a href = "/submit/hats" > Approve or Reject Hats< / a > < / li >
{% endif %}
{% if v.admin_level >= PERMS['UPDATE_ASSETS'] %}
2023-03-18 13:34:04 +00:00
< li > < a href = "/admin/update/emojis" > Update Emojis< / a > < / li >
2023-02-18 21:07:37 +00:00
< li > < a href = "/admin/update/hats" > Update Hats< / a > < / li >
{% endif %}
2022-09-17 15:08:24 +00:00
{% endif %}
2022-09-11 07:11:10 +00:00
< / ul >
{% endif %}
2022-06-19 12:34:10 +00:00
< h4 > Content< / h4 >
< ul >
2023-05-12 15:27:46 +00:00
{% if v.admin_level >= PERMS['ENABLE_DM_MEDIA'] %}
2023-05-12 15:35:31 +00:00
< li > < a href = "/admin/dm_media" > DM Media< / a > < / li >
2023-01-28 08:41:11 +00:00
{% endif %}
2022-07-18 04:37:07 +00:00
< li > < a href = "/log" > Moderation Log< / a > < / li >
2022-10-06 06:18:08 +00:00
{% if v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %}
< li > < a href = "/admin/image_posts" > Image Posts< / a > < / li >
< li > < a href = "/admin/reported/posts" > Reported Posts/Comments< / a > < / li >
< li > < a href = "/admin/removed/posts" > Removed Posts/Comments< / a > < / li >
{% endif %}
2022-06-19 12:34:10 +00:00
< / ul >
< h4 > Users< / h4 >
< ul >
2023-10-05 09:44:42 +00:00
{% if v.can_see_shadowbanned %}
2022-10-06 06:18:08 +00:00
< li > < a href = "/admin/shadowbanned" > Shadowbanned Users< / a > < / li >
{% endif %}
2023-02-19 19:17:09 +00:00
< li > < a href = "/banned" > Banned Users< / a > < / li >
2022-07-19 23:59:39 +00:00
{% if FEATURES['AWARDS'] -%}
2022-11-28 01:32:01 +00:00
< li > < a href = "/chuds" > Chudded Users< / a > < / li >
2022-07-19 23:59:39 +00:00
< li > < a href = "/grassed" > Currently Grassed Users< / a > < / li >
{%- endif %}
2023-01-22 08:04:49 +00:00
{% if FEATURES['MARSEYBUX'] and v.admin_level >= PERMS['VIEW_PATRONS'] -%}
2023-05-03 14:45:14 +00:00
< li > < a href = "/admin/patrons" > Patrons< / a > < / li >
2022-07-19 23:59:39 +00:00
{%- endif %}
2022-10-06 06:18:08 +00:00
{% if v.admin_level >= PERMS['VIEW_ACTIVE_USERS'] %}
< li > < a href = "/admin/loggedin" > Currently Logged-in Users< / a > < / li >
< li > < a href = "/admin/loggedout" > Currently Logged-out Users< / a > < / li >
{% endif %}
2022-06-19 12:34:10 +00:00
< / ul >
< h4 > Safety< / h4 >
< ul >
2023-02-19 19:31:26 +00:00
{% if v.admin_level >= PERMS['DELETE_MEDIA'] %}
< li > < a href = "/admin/delete_media" > Delete Media< / a > < / li >
{% endif %}
2023-02-19 19:17:09 +00:00
{% if v.admin_level >= PERMS['DOMAINS_BAN'] %}
< li > < a href = "/admin/banned_domains" > Banned Domains< / a > < / li >
{% endif %}
2022-11-14 17:32:13 +00:00
{% if v.admin_level >= PERMS['USER_LINK'] %}
< li > < a href = "/admin/alts/" > View and Link Alts< / a > < / li >
{% endif %}
{% if v.admin_level >= PERMS['VIEW_ALT_VOTES'] %}
2023-06-06 19:15:25 +00:00
< li > < a href = "/admin/alt_votes" > Alt Vote Analysis< / a > < / li >
2022-11-14 17:32:13 +00:00
{% endif %}
2022-06-19 12:34:10 +00:00
< / ul >
2023-03-15 04:50:56 +00:00
{% if FEATURES['BADGES'] and v.admin_level >= PERMS['USER_BADGES'] -%}
< h4 > Badges< / h4 >
2022-06-19 12:34:10 +00:00
< ul >
2023-03-15 04:50:56 +00:00
< li > < a href = "/admin/badge_grant" > Grant Badges< / a > < / li >
< li > < a href = "/admin/badge_remove" > Remove Badges< / a > < / li >
2022-06-19 12:34:10 +00:00
< / ul >
2022-07-19 23:59:39 +00:00
{%- endif %}
2022-06-19 12:34:10 +00:00
2023-03-15 04:50:56 +00:00
{% if FEATURES['GAMBLING'] and v.admin_level >= PERMS['LOTTERY_VIEW_PARTICIPANTS'] -%}
2022-09-05 20:59:42 +00:00
< h4 > Casino< / h4 >
2022-06-19 12:34:10 +00:00
< ul >
2023-03-15 04:50:56 +00:00
< li > < a href = "/admin/lottery/participants" > Participants< / a > < / li >
2022-06-19 12:34:10 +00:00
< / ul >
2022-06-19 12:33:51 +00:00
{%- endif %}
2022-06-19 12:34:10 +00:00
< h4 > Statistics< / h4 >
< ul >
< li > < a href = "/stats" > Content Stats< / a > < / li >
< li > < a href = "/weekly_chart" > Weekly Stat Chart< / a > < / li >
< li > < a href = "/daily_chart" > Daily Stat Chart< / a > < / li >
< / ul >
2022-07-12 19:32:34 +00:00
< h4 > Configuration< / h4 >
2023-01-27 13:00:06 +00:00
< ul class = "pb-3" >
2022-12-05 05:22:08 +00:00
{% if v.admin_level >= PERMS['EDIT_RULES'] %}
< li > < a href = "/admin/edit_rules" > Edit the Rules< / a > < / li >
{%- endif %}
2023-10-07 18:04:12 +00:00
{% if PERMS['HOLE_CREATE'] and v.admin_level >= PERMS['HOLE_CREATE'] %}
< li > < a href = "/create_hole" > Create Hole< / a > < / li >
2022-10-06 06:18:08 +00:00
{% endif %}
2022-10-06 07:40:36 +00:00
{% if v.admin_level >= PERMS['APPS_MODERATION'] %}
2022-10-06 06:18:08 +00:00
< li > < a href = "/admin/apps" > Apps< / a > < / li >
{% endif %}
2022-07-12 19:32:34 +00:00
< / ul >
2022-05-04 23:09:46 +00:00
2022-10-06 06:18:08 +00:00
{% if v.admin_level >= PERMS['SITE_SETTINGS'] %}
2023-02-09 03:49:50 +00:00
{% for setting in SITE_SETTINGS.keys() %}
2023-10-18 21:28:43 +00:00
{% if not (setting == "offline_mode" and v.admin_level < PERMS [ " SITE_OFFLINE_MODE " ] ) % }
2023-03-25 21:35:13 +00:00
< div class = "custom-control custom-switch{% if loop.index > 1 %} mt-1{% endif %}" id = "settings-{{setting}}-container" >
2023-10-18 21:28:43 +00:00
< 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}}')" { % if setting = = " under_attack " % } disabled { % endif % } >
2023-03-25 21:35:13 +00:00
< label class = "custom-control-label" for = "settings-{{setting}}-checkbox" > {{setting.replace('_', ' ').title()}}< / label >
< / div >
{% endif %}
2022-11-30 18:26:07 +00:00
{% endfor %}
2022-06-19 12:33:51 +00:00
{% endif %}
2022-05-04 23:09:46 +00:00
2022-12-22 20:52:36 +00:00
{% if v.admin_level >= PERMS['SITE_CACHE_PURGE_CDN'] %}
2023-09-15 11:01:04 +00:00
< button type = "button" class = "btn btn-primary" data-nonce = "{{g.nonce}}" data-onclick = "postToastSwitch(this,'/admin/clear_cloudflare_cache')" style = "margin-bottom: 2em" > CLEAR CLOUDFLARE CACHE< / button >
2022-11-03 01:35:32 +00:00
{% endif %}
2023-08-01 01:28:29 +00:00
{% if v.admin_level >= PERMS['CLAIM_REWARDS_ALL_USERS'] %}
2023-09-15 11:01:04 +00:00
< button type = "button" class = "btn btn-primary d-block" data-nonce = "{{g.nonce}}" data-onclick = "postToastSwitch(this,'/admin/claim_rewards_all_users')" style = "margin-bottom: 2em" > CLAIM {{patron.upper()}} REWARDS FOR ALL USERS< / button >
2023-08-01 01:28:29 +00:00
{% endif %}
2022-10-05 21:23:00 +00:00
{% endblock %}