forked from rDrama/rDrama
1
0
Fork 0

rDrama -> SITE_NAME

master
Aevann1 2022-06-11 16:39:00 +02:00
parent 165e394dea
commit b94fabddb4
4 changed files with 12 additions and 12 deletions

View File

@ -222,17 +222,17 @@ def api_comment(v):
if image == "": return {"error":"Image upload failed"}
if v.admin_level > 2 and level == 1:
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]
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)
process_image(v.patron, filename, 400)
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]
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)
process_image(v.patron, filename)
elif parent_post.id == 37833:
@ -1083,4 +1083,4 @@ def handle_wordle_action(cid, v):
g.db.add(comment)
g.db.commit()
return {"response" : comment.wordle_html(v)}
return {"response" : comment.wordle_html(v)}

View File

@ -260,9 +260,9 @@
<a href="https://secure.transequality.org/site/Donation2?df_id=1480">
{% 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 %}
<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 %}
</a>
{% else %}

View File

@ -2,10 +2,10 @@
<div>
<div class="lottery-page--wrapper">
<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
id="lotteryTicketPulled"
src="/assets/images/rDrama/lottery_active.webp?v=2"
src="/assets/images/{{SITE_NAME}}/lottery_active.webp?v=2"
style="display: none"
/>
</div>
@ -62,7 +62,7 @@
data-bs-toggle="tooltip"
data-bs-placement="bottom"
height="13"
src="/assets/images/rDrama/coins.webp?v=2"
src="/assets/images/{{SITE_NAME}}/coins.webp?v=2"
title=""
aria-label="coins"
data-bs-original-title="coins"
@ -123,7 +123,7 @@
data-bs-toggle="tooltip"
data-bs-placement="bottom"
height="13"
src="/assets/images/rDrama/coins.webp?v=2"
src="/assets/images/{{SITE_NAME}}/coins.webp?v=2"
title=""
aria-label="coins"
data-bs-original-title="coins"

View File

@ -31,7 +31,7 @@ set VISITORS_HERE_FLAVOR = [
{% endif %}
{% 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 %}
<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 %}