forked from MarseyWorld/MarseyWorld
rDrama -> SITE_NAME
parent
165e394dea
commit
b94fabddb4
|
@ -222,17 +222,17 @@ def api_comment(v):
|
||||||
if image == "": return {"error":"Image upload failed"}
|
if image == "": return {"error":"Image upload failed"}
|
||||||
if v.admin_level > 2 and level == 1:
|
if v.admin_level > 2 and level == 1:
|
||||||
if parent_post.id == 37696:
|
if parent_post.id == 37696:
|
||||||
li = sorted(os.listdir('files/assets/images/rDrama/sidebar'),
|
li = sorted(os.listdir(f'files/assets/images/{SITE_NAME}/sidebar'),
|
||||||
key=lambda e: int(e.split('.webp')[0]))[-1]
|
key=lambda e: int(e.split('.webp')[0]))[-1]
|
||||||
num = int(li.split('.webp')[0]) + 1
|
num = int(li.split('.webp')[0]) + 1
|
||||||
filename = f'files/assets/images/rDrama/sidebar/{num}.webp'
|
filename = f'files/assets/images/{SITE_NAME}/sidebar/{num}.webp'
|
||||||
copyfile(oldname, filename)
|
copyfile(oldname, filename)
|
||||||
process_image(v.patron, filename, 400)
|
process_image(v.patron, filename, 400)
|
||||||
elif parent_post.id == 37697:
|
elif parent_post.id == 37697:
|
||||||
li = sorted(os.listdir('files/assets/images/rDrama/banners'),
|
li = sorted(os.listdir(f'files/assets/images/{SITE_NAME}/banners'),
|
||||||
key=lambda e: int(e.split('.webp')[0]))[-1]
|
key=lambda e: int(e.split('.webp')[0]))[-1]
|
||||||
num = int(li.split('.webp')[0]) + 1
|
num = int(li.split('.webp')[0]) + 1
|
||||||
filename = f'files/assets/images/rDrama/banners/{num}.webp'
|
filename = f'files/assets/images/{SITE_NAME}/banners/{num}.webp'
|
||||||
copyfile(oldname, filename)
|
copyfile(oldname, filename)
|
||||||
process_image(v.patron, filename)
|
process_image(v.patron, filename)
|
||||||
elif parent_post.id == 37833:
|
elif parent_post.id == 37833:
|
||||||
|
@ -1083,4 +1083,4 @@ def handle_wordle_action(cid, v):
|
||||||
g.db.add(comment)
|
g.db.add(comment)
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
||||||
return {"response" : comment.wordle_html(v)}
|
return {"response" : comment.wordle_html(v)}
|
||||||
|
|
|
@ -260,9 +260,9 @@
|
||||||
|
|
||||||
<a href="https://secure.transequality.org/site/Donation2?df_id=1480">
|
<a href="https://secure.transequality.org/site/Donation2?df_id=1480">
|
||||||
{% if v and (v.is_banned or v.agendaposter) %}
|
{% if v and (v.is_banned or v.agendaposter) %}
|
||||||
<img alt="site banner" src="/assets/images/rDrama/banner2.webp?v=1" width="100%">
|
<img alt="site banner" src="/assets/images/{{SITE_NAME}}/banner2.webp?v=1" width="100%">
|
||||||
{% else %}
|
{% else %}
|
||||||
<img alt="site banner" src="{% if v %}{{image}}{% else %}/assets/images/rDrama/cached.webp?v=100{% endif %}" width="100%">
|
<img alt="site banner" src="{% if v %}{{image}}{% else %}/assets/images/{{SITE_NAME}}/cached.webp?v=100{% endif %}" width="100%">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="lottery-page--wrapper">
|
<div class="lottery-page--wrapper">
|
||||||
<div class="lottery-page--image">
|
<div class="lottery-page--image">
|
||||||
<img src="/assets/images/rDrama/lottery.webp?v=2" />
|
<img src="/assets/images/{{SITE_NAME}}/lottery.webp?v=2" />
|
||||||
<img
|
<img
|
||||||
id="lotteryTicketPulled"
|
id="lotteryTicketPulled"
|
||||||
src="/assets/images/rDrama/lottery_active.webp?v=2"
|
src="/assets/images/{{SITE_NAME}}/lottery_active.webp?v=2"
|
||||||
style="display: none"
|
style="display: none"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
data-bs-toggle="tooltip"
|
data-bs-toggle="tooltip"
|
||||||
data-bs-placement="bottom"
|
data-bs-placement="bottom"
|
||||||
height="13"
|
height="13"
|
||||||
src="/assets/images/rDrama/coins.webp?v=2"
|
src="/assets/images/{{SITE_NAME}}/coins.webp?v=2"
|
||||||
title=""
|
title=""
|
||||||
aria-label="coins"
|
aria-label="coins"
|
||||||
data-bs-original-title="coins"
|
data-bs-original-title="coins"
|
||||||
|
@ -123,7 +123,7 @@
|
||||||
data-bs-toggle="tooltip"
|
data-bs-toggle="tooltip"
|
||||||
data-bs-placement="bottom"
|
data-bs-placement="bottom"
|
||||||
height="13"
|
height="13"
|
||||||
src="/assets/images/rDrama/coins.webp?v=2"
|
src="/assets/images/{{SITE_NAME}}/coins.webp?v=2"
|
||||||
title=""
|
title=""
|
||||||
aria-label="coins"
|
aria-label="coins"
|
||||||
data-bs-original-title="coins"
|
data-bs-original-title="coins"
|
||||||
|
|
|
@ -31,7 +31,7 @@ set VISITORS_HERE_FLAVOR = [
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if v and (v.is_banned or v.agendaposter) %}
|
{% if v and (v.is_banned or v.agendaposter) %}
|
||||||
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('/assets/images/rDrama/sidebar2.webp')" loading="lazy" src="/assets/images/rDrama/sidebar2.webp" width=100%>
|
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('/assets/images/{{SITE_NAME}}/sidebar2.webp')" loading="lazy" src="/assets/images/{{SITE_NAME}}/sidebar2.webp" width=100%>
|
||||||
{% else %}
|
{% else %}
|
||||||
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%>
|
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue