forked from rDrama/rDrama
1
0
Fork 0

convert IS_FISTMAS and IS_HOMOWEEN from functions to variables

master
Aevann 2023-03-08 08:10:18 +02:00
parent a67b82927c
commit b45d845630
16 changed files with 51 additions and 51 deletions

View File

@ -45,7 +45,7 @@ else:
DEFAULT_COINS = 0 DEFAULT_COINS = 0
DEFAULT_MARSEYBUX = 0 DEFAULT_MARSEYBUX = 0
if IS_FISTMAS(): if IS_FISTMAS:
if SITE_NAME == 'rDrama': if SITE_NAME == 'rDrama':
default_event_music = True default_event_music = True
default_darkmode = False default_darkmode = False
@ -161,7 +161,7 @@ class User(Base):
spider = Column(Integer, default=0) spider = Column(Integer, default=0)
blacklisted_by = Column(Integer, ForeignKey("users.id")) blacklisted_by = Column(Integer, ForeignKey("users.id"))
if IS_FISTMAS(): if IS_FISTMAS:
event_music = Column(Boolean, default=default_event_music, nullable=False) event_music = Column(Boolean, default=default_event_music, nullable=False)
event_darkmode = Column(Boolean, default=default_darkmode, nullable=False) event_darkmode = Column(Boolean, default=default_darkmode, nullable=False)
@ -300,7 +300,7 @@ class User(Base):
@lazy @lazy
def hat_active(self, v): def hat_active(self, v):
if FEATURES['HATS']: if FEATURES['HATS']:
if IS_FISTMAS(): if IS_FISTMAS:
hat = random.choice(('Santa Hat III', 'Winter Cap', 'Present Bow')) hat = random.choice(('Santa Hat III', 'Winter Cap', 'Present Bow'))
if SITE_NAME == 'rDrama': if SITE_NAME == 'rDrama':
return (f'/i/hats/{hat}.webp', 'Merry Fistmas!') return (f'/i/hats/{hat}.webp', 'Merry Fistmas!')
@ -1198,7 +1198,7 @@ class User(Base):
return output return output
if IS_FISTMAS(): if IS_FISTMAS:
@property @property
@lazy @lazy
def can_toggle_event_music(self): def can_toggle_event_music(self):

View File

@ -60,7 +60,7 @@ def execute_snappy(post:Submission, v:User):
body = "Can you people come up with any ideas that don't involve committing federal crimes" body = "Can you people come up with any ideas that don't involve committing federal crimes"
else: else:
if SNAPPY_MARSEYS and SNAPPY_QUOTES: if SNAPPY_MARSEYS and SNAPPY_QUOTES:
if IS_FISTMAS() or random.random() > 0.5: if IS_FISTMAS or random.random() > 0.5:
SNAPPY_CHOICES = SNAPPY_QUOTES SNAPPY_CHOICES = SNAPPY_QUOTES
else: else:
SNAPPY_CHOICES = SNAPPY_MARSEYS SNAPPY_CHOICES = SNAPPY_MARSEYS

View File

@ -12,7 +12,7 @@ ASSET_SUBDIRS = ['/css', '/js', '/js/vendor']
ASSET_URL = '/assets/' ASSET_URL = '/assets/'
ASSET_CACHE = defaultdict(lambda: None) ASSET_CACHE = defaultdict(lambda: None)
if IS_FISTMAS(): if IS_FISTMAS:
ASSET_SUBDIRS.extend(['/fistmas/css', '/fistmas/css/themes', '/fistmas/js', '/fistmas/js/vendor']) ASSET_SUBDIRS.extend(['/fistmas/css', '/fistmas/css/themes', '/fistmas/js', '/fistmas/js/vendor'])
def assetcache_build(asset_dir, subdirs): def assetcache_build(asset_dir, subdirs):

View File

@ -53,7 +53,7 @@ AWARDS = {
"deflectable": True, "deflectable": True,
"cosmetic": False, "cosmetic": False,
"ghost": False, "ghost": False,
"enabled": IS_FISTMAS(), "enabled": IS_FISTMAS,
}, },
"snow": { "snow": {
"kind": "snow", "kind": "snow",
@ -65,7 +65,7 @@ AWARDS = {
"deflectable": False, "deflectable": False,
"cosmetic": True, "cosmetic": True,
"ghost": True, "ghost": True,
"enabled": IS_FISTMAS(), "enabled": IS_FISTMAS,
}, },
"gingerbread": { "gingerbread": {
"kind": "gingerbread", "kind": "gingerbread",
@ -77,7 +77,7 @@ AWARDS = {
"deflectable": False, "deflectable": False,
"cosmetic": True, "cosmetic": True,
"ghost": True, "ghost": True,
"enabled": IS_FISTMAS(), "enabled": IS_FISTMAS,
}, },
"lights": { "lights": {
"kind": "lights", "kind": "lights",
@ -89,7 +89,7 @@ AWARDS = {
"deflectable": False, "deflectable": False,
"cosmetic": True, "cosmetic": True,
"ghost": True, "ghost": True,
"enabled": IS_FISTMAS(), "enabled": IS_FISTMAS,
}, },
"candycane": { "candycane": {
"kind": "candycane", "kind": "candycane",
@ -101,7 +101,7 @@ AWARDS = {
"deflectable": False, "deflectable": False,
"cosmetic": True, "cosmetic": True,
"ghost": True, "ghost": True,
"enabled": IS_FISTMAS(), "enabled": IS_FISTMAS,
}, },
"fireplace": { "fireplace": {
"kind": "fireplace", "kind": "fireplace",
@ -113,7 +113,7 @@ AWARDS = {
"deflectable": False, "deflectable": False,
"cosmetic": True, "cosmetic": True,
"ghost": True, "ghost": True,
"enabled": IS_FISTMAS(), "enabled": IS_FISTMAS,
}, },
"frostbite": { "frostbite": {
"kind": "frostbite", "kind": "frostbite",
@ -125,7 +125,7 @@ AWARDS = {
"deflectable": False, "deflectable": False,
"cosmetic": True, "cosmetic": True,
"ghost": True, "ghost": True,
"enabled": IS_FISTMAS(), "enabled": IS_FISTMAS,
}, },
"grinch": { "grinch": {
"kind": "grinch", "kind": "grinch",
@ -137,7 +137,7 @@ AWARDS = {
"deflectable": True, "deflectable": True,
"cosmetic": False, "cosmetic": False,
"ghost": False, "ghost": False,
"enabled": IS_FISTMAS(), "enabled": IS_FISTMAS,
}, },
### Homoween ### Homoween
@ -151,7 +151,7 @@ AWARDS = {
"deflectable": False, "deflectable": False,
"cosmetic": True, "cosmetic": True,
"ghost": True, "ghost": True,
"enabled": IS_HOMOWEEN(), "enabled": IS_HOMOWEEN,
}, },
"upsidedown": { "upsidedown": {
"kind": "upsidedown", "kind": "upsidedown",
@ -163,7 +163,7 @@ AWARDS = {
"deflectable": False, "deflectable": False,
"cosmetic": True, "cosmetic": True,
"ghost": True, "ghost": True,
"enabled": IS_HOMOWEEN(), "enabled": IS_HOMOWEEN,
}, },
"stab": { "stab": {
"kind": "stab", "kind": "stab",
@ -175,7 +175,7 @@ AWARDS = {
"deflectable": False, "deflectable": False,
"cosmetic": True, "cosmetic": True,
"ghost": True, "ghost": True,
"enabled": IS_HOMOWEEN(), "enabled": IS_HOMOWEEN,
}, },
"spiders": { "spiders": {
"kind": "spiders", "kind": "spiders",
@ -187,7 +187,7 @@ AWARDS = {
"deflectable": False, "deflectable": False,
"cosmetic": True, "cosmetic": True,
"ghost": True, "ghost": True,
"enabled": IS_HOMOWEEN(), "enabled": IS_HOMOWEEN,
}, },
"fog": { "fog": {
"kind": "fog", "kind": "fog",
@ -199,7 +199,7 @@ AWARDS = {
"deflectable": False, "deflectable": False,
"cosmetic": True, "cosmetic": True,
"ghost": True, "ghost": True,
"enabled": IS_HOMOWEEN(), "enabled": IS_HOMOWEEN,
}, },
"jumpscare": { "jumpscare": {
"kind": "jumpscare", "kind": "jumpscare",
@ -211,7 +211,7 @@ AWARDS = {
"deflectable": True, "deflectable": True,
"cosmetic": False, "cosmetic": False,
"ghost": False, "ghost": False,
"enabled": IS_HOMOWEEN(), "enabled": IS_HOMOWEEN,
}, },
"hw-bite": { "hw-bite": {
"kind": "hw-bite", "kind": "hw-bite",
@ -223,7 +223,7 @@ AWARDS = {
"deflectable": True, "deflectable": True,
"cosmetic": False, "cosmetic": False,
"ghost": False, "ghost": False,
"enabled": IS_HOMOWEEN(), "enabled": IS_HOMOWEEN,
}, },
"hw-vax": { "hw-vax": {
"kind": "hw-vax", "kind": "hw-vax",
@ -235,7 +235,7 @@ AWARDS = {
"deflectable": True, "deflectable": True,
"cosmetic": False, "cosmetic": False,
"ghost": False, "ghost": False,
"enabled": IS_HOMOWEEN(), "enabled": IS_HOMOWEEN,
}, },
"hw-grinch": { "hw-grinch": {
"kind": "hw-grinch", "kind": "hw-grinch",
@ -247,7 +247,7 @@ AWARDS = {
"deflectable": True, "deflectable": True,
"cosmetic": False, "cosmetic": False,
"ghost": False, "ghost": False,
"enabled": IS_HOMOWEEN(), "enabled": IS_HOMOWEEN,
}, },
"flashlight": { "flashlight": {
"kind": "flashlight", "kind": "flashlight",
@ -259,7 +259,7 @@ AWARDS = {
"deflectable": False, "deflectable": False,
"cosmetic": True, "cosmetic": True,
"ghost": True, "ghost": True,
"enabled": IS_HOMOWEEN(), "enabled": IS_HOMOWEEN,
}, },
"candy-corn": { "candy-corn": {
"kind": "candy-corn", "kind": "candy-corn",
@ -271,7 +271,7 @@ AWARDS = {
"deflectable": False, "deflectable": False,
"cosmetic": True, "cosmetic": True,
"ghost": True, "ghost": True,
"enabled": IS_HOMOWEEN(), "enabled": IS_HOMOWEEN,
}, },
"ectoplasm": { "ectoplasm": {
"kind": "ectoplasm", "kind": "ectoplasm",
@ -283,7 +283,7 @@ AWARDS = {
"deflectable": False, "deflectable": False,
"cosmetic": True, "cosmetic": True,
"ghost": True, "ghost": True,
"enabled": IS_HOMOWEEN(), "enabled": IS_HOMOWEEN,
}, },
"bones": { "bones": {
"kind": "bones", "kind": "bones",
@ -295,7 +295,7 @@ AWARDS = {
"deflectable": False, "deflectable": False,
"cosmetic": True, "cosmetic": True,
"ghost": True, "ghost": True,
"enabled": IS_HOMOWEEN(), "enabled": IS_HOMOWEEN,
}, },
"pumpkin": { "pumpkin": {
"kind": "pumpkin", "kind": "pumpkin",
@ -307,7 +307,7 @@ AWARDS = {
"deflectable": False, "deflectable": False,
"cosmetic": True, "cosmetic": True,
"ghost": True, "ghost": True,
"enabled": IS_HOMOWEEN(), "enabled": IS_HOMOWEEN,
}, },
### Standard ### Standard

View File

@ -8,13 +8,13 @@ t = datetime.datetime.now()
fistmas_begin = datetime.datetime.strptime(f'1/12/{t.year}', '%d/%m/%Y') fistmas_begin = datetime.datetime.strptime(f'1/12/{t.year}', '%d/%m/%Y')
fistmas_end = datetime.datetime.strptime(f'30/12/{t.year}', '%d/%m/%Y') fistmas_end = datetime.datetime.strptime(f'30/12/{t.year}', '%d/%m/%Y')
def IS_FISTMAS():
return fistmas_begin < datetime.datetime.now() < fistmas_end IS_FISTMAS = fistmas_begin < datetime.datetime.now() < fistmas_end
homoween_begin = datetime.datetime.strptime(f'15/10/{t.year}', '%d/%m/%Y') homoween_begin = datetime.datetime.strptime(f'15/10/{t.year}', '%d/%m/%Y')
homoween_end = datetime.datetime.strptime(f'1/11/{t.year}', '%d/%m/%Y') homoween_end = datetime.datetime.strptime(f'1/11/{t.year}', '%d/%m/%Y')
def IS_HOMOWEEN():
return homoween_begin < datetime.datetime.now() < homoween_end IS_HOMOWEEN = homoween_begin < datetime.datetime.now() < homoween_end
DEFAULT_TIME_FILTER = "all" DEFAULT_TIME_FILTER = "all"
DEFAULT_THEME = "midnight" DEFAULT_THEME = "midnight"

View File

@ -32,7 +32,7 @@ def _initialize_snappy_marseys_and_quotes():
SNAPPY_MARSEYS = [f':#{x}:' for x in marseys_const2] SNAPPY_MARSEYS = [f':#{x}:' for x in marseys_const2]
filename = f"snappy_{SITE_NAME}.txt" filename = f"snappy_{SITE_NAME}.txt"
if IS_FISTMAS(): filename = f"snappy_event_{SITE_NAME}.txt" if IS_FISTMAS: filename = f"snappy_event_{SITE_NAME}.txt"
try: try:
with open(filename, "r", encoding="utf-8") as f: with open(filename, "r", encoding="utf-8") as f:

View File

@ -201,7 +201,7 @@ def settings_personal_post(v):
badge = v.has_badge(179) badge = v.has_badge(179)
if badge: g.db.delete(badge) if badge: g.db.delete(badge)
elif IS_FISTMAS() and not updated and request.values.get("event_music", v.event_music) != v.event_music and v.can_toggle_event_music: elif IS_FISTMAS and not updated and request.values.get("event_music", v.event_music) != v.event_music and v.can_toggle_event_music:
updated = True updated = True
v.event_music = not v.event_music v.event_music = not v.event_music
@ -920,7 +920,7 @@ def settings_checkmark_text(v):
g.db.add(v) g.db.add(v)
return redirect("/settings/personal?msg=Checkmark Text successfully updated!") return redirect("/settings/personal?msg=Checkmark Text successfully updated!")
if IS_FISTMAS(): if IS_FISTMAS:
@app.post("/events/fistmas2022/darkmode") @app.post("/events/fistmas2022/darkmode")
@limiter.limit('1/second', scope=rpath) @limiter.limit('1/second', scope=rpath)
@limiter.limit(DEFAULT_RATELIMIT) @limiter.limit(DEFAULT_RATELIMIT)

View File

@ -89,7 +89,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
if SITE_NAME == 'WPD': if SITE_NAME == 'WPD':
coin_mult *= 2 coin_mult *= 2
if IS_FISTMAS(): if IS_FISTMAS:
coin_mult *= 2 coin_mult *= 2
coin_value = coin_delta * coin_mult coin_value = coin_delta * coin_mult

View File

@ -4,7 +4,7 @@
{% block banner %} {% block banner %}
{% include "modals/expanded_image.html" %} {% include "modals/expanded_image.html" %}
{% if err or '@' not in request.path %} {% if err or '@' not in request.path %}
{% if IS_FISTMAS() and not sub %} {% if IS_FISTMAS and not sub %}
{% include 'fistmas/banner.html' %} {% include 'fistmas/banner.html' %}
{% else %} {% else %}
{% if err and SITE_NAME == 'rDrama' %} {% if err and SITE_NAME == 'rDrama' %}
@ -79,7 +79,7 @@
<script defer src="{{'js/spider.js' | asset}}"></script> <script defer src="{{'js/spider.js' | asset}}"></script>
{% endif %} {% endif %}
{% if IS_FISTMAS() %} {% if IS_FISTMAS %}
{% include "fistmas/music.html" %} {% include "fistmas/music.html" %}
{% endif %} {% endif %}

View File

@ -10,7 +10,7 @@
{% if range(1,5) | random == 1 %} {% if range(1,5) | random == 1 %}
{% include "journoid_banner.html" %} {% include "journoid_banner.html" %}
{% else %} {% else %}
{% if IS_FISTMAS() %} {% if IS_FISTMAS %}
{%- set VISITORS_HERE_FLAVOR = [ {%- set VISITORS_HERE_FLAVOR = [
' santa enjoyers kissing under a misletoe', ' santa enjoyers kissing under a misletoe',
' bringing up family drama at Christmas dinner', ' bringing up family drama at Christmas dinner',
@ -55,7 +55,7 @@
<div class="navbar navbar-expand-md navbar-light" id="navbar"> <div class="navbar navbar-expand-md navbar-light" id="navbar">
<div class="container-fluid" style="padding:0;"> <div class="container-fluid" style="padding:0;">
<a href="/" class="navbar-brand mr-auto {% if not has_logo and not sub %}flex-grow-1{% endif %}"> <a href="/" class="navbar-brand mr-auto {% if not has_logo and not sub %}flex-grow-1{% endif %}">
{% if IS_FISTMAS() %} {% if IS_FISTMAS %}
{% if SITE_NAME == 'WPD' %} {% if SITE_NAME == 'WPD' %}
{% set icon_url = 'icons-events/2022-christmas.webp' | asset_siteimg %} {% set icon_url = 'icons-events/2022-christmas.webp' | asset_siteimg %}
{% else %} {% else %}
@ -72,7 +72,7 @@
{% elif has_logo %} {% elif has_logo %}
<div id="logo-container" class="flex-grow-1 logo-container"> <div id="logo-container" class="flex-grow-1 logo-container">
<a href="/"> <a href="/">
{% if SITE_NAME == 'WPD' and IS_FISTMAS() %} {% if SITE_NAME == 'WPD' and IS_FISTMAS %}
<img loading="lazy" class="ml-1" id="logo-{{SITE_NAME}}" alt="logo" src="{{'icons-event/2022-christmas-logo.webp' | asset_siteimg}}" width="70"> <img loading="lazy" class="ml-1" id="logo-{{SITE_NAME}}" alt="logo" src="{{'icons-event/2022-christmas-logo.webp' | asset_siteimg}}" width="70">
{% else %} {% else %}
<img loading="lazy" class="ml-1" id="logo-{{SITE_NAME}}" alt="logo" src="{{'logo.webp' | asset_siteimg}}" width="70"> <img loading="lazy" class="ml-1" id="logo-{{SITE_NAME}}" alt="logo" src="{{'logo.webp' | asset_siteimg}}" width="70">

View File

@ -9,7 +9,7 @@
{%- import 'util/html_head.html' as html_head with context -%} {%- import 'util/html_head.html' as html_head with context -%}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" {% if not IS_FISTMAS() %}style="--primary:#{{v.themecolor if v else DEFAULT_COLOR}}"{% endif %}> <html lang="en" {% if not IS_FISTMAS %}style="--primary:#{{v.themecolor if v else DEFAULT_COLOR}}"{% endif %}>
<head> <head>
{% block head %} {% block head %}
<meta charset="utf-8"> <meta charset="utf-8">

View File

@ -22,7 +22,7 @@
<li><small>Disables the effects of cosmetic awards.</small></li> <li><small>Disables the effects of cosmetic awards.</small></li>
<li><small>Hides signatures.</small></li> <li><small>Hides signatures.</small></li>
<li><small>Makes emoji search only start when you press Enter.</small></li> <li><small>Makes emoji search only start when you press Enter.</small></li>
{% if IS_FISTMAS() %} {% if IS_FISTMAS %}
<li><small>Disables event music.</small></li> <li><small>Disables event music.</small></li>
{% endif %} {% endif %}
</ul> </ul>

View File

@ -25,7 +25,7 @@
<a class="sidebar-link" href="/log" data-bs-toggle="tooltip" data-bs-placement="top" title="Moderation Log"><i class="fas fa-scroll-old"></i></a> <a class="sidebar-link" href="/log" data-bs-toggle="tooltip" data-bs-placement="top" title="Moderation Log"><i class="fas fa-scroll-old"></i></a>
<a class="sidebar-link" href="/transfers" data-bs-toggle="tooltip" data-bs-placement="top" title="Transfers"><i class="fas fa-arrow-right-arrow-left"></i></a> <a class="sidebar-link" href="/transfers" data-bs-toggle="tooltip" data-bs-placement="top" title="Transfers"><i class="fas fa-arrow-right-arrow-left"></i></a>
<a class="sidebar-link" href="/random_post" data-bs-toggle="tooltip" data-bs-placement="top" title="Random Post"><i class="fas fa-random"></i></a> <a class="sidebar-link" href="/random_post" data-bs-toggle="tooltip" data-bs-placement="top" title="Random Post"><i class="fas fa-random"></i></a>
{% if IS_FISTMAS() %} {% if IS_FISTMAS %}
<span class="sidebar-link" data-nonce="{{g.nonce}}" data-onclick="postToastRoastEventDarkmode(this, '/events/fistmas2022/darkmode')" style="display:inline" data-bs-toggle="tooltip" data-bs-placement="top" title="Toggle Dark Mode"><i class="fas fa-moon-over-sun"></i></span> <span class="sidebar-link" data-nonce="{{g.nonce}}" data-onclick="postToastRoastEventDarkmode(this, '/events/fistmas2022/darkmode')" style="display:inline" data-bs-toggle="tooltip" data-bs-placement="top" title="Toggle Dark Mode"><i class="fas fa-moon-over-sun"></i></span>
{% endif %} {% endif %}
</p> </p>
@ -87,6 +87,6 @@
</div> </div>
</div> </div>
{% if IS_FISTMAS() %} {% if IS_FISTMAS %}
<script defer src="{{'fistmas/js/darkmode.js' | asset}}"></script> <script defer src="{{'fistmas/js/darkmode.js' | asset}}"></script>
{% endif %} {% endif %}

View File

@ -8,7 +8,7 @@
{% if sub %} {% if sub %}
{% set image=sub.sidebar_url %} {% set image=sub.sidebar_url %}
{% elif IS_FISTMAS() %} {% elif IS_FISTMAS %}
{% set image = macros.random_image("assets/fistmas/images/sidebar") %} {% set image = macros.random_image("assets/fistmas/images/sidebar") %}
{% else %} {% else %}
{% set image = macros.random_image("assets/images/" ~ SITE_NAME ~ "/sidebar") %} {% set image = macros.random_image("assets/images/" ~ SITE_NAME ~ "/sidebar") %}
@ -34,7 +34,7 @@
<a class="sidebar-link" href="/log" data-bs-toggle="tooltip" data-bs-placement="top" title="Moderation Log"><i class="fas fa-scroll-old"></i></a> <a class="sidebar-link" href="/log" data-bs-toggle="tooltip" data-bs-placement="top" title="Moderation Log"><i class="fas fa-scroll-old"></i></a>
<a class="sidebar-link" href="/transfers" data-bs-toggle="tooltip" data-bs-placement="top" title="Transfers"><i class="fas fa-arrow-right-arrow-left"></i></a> <a class="sidebar-link" href="/transfers" data-bs-toggle="tooltip" data-bs-placement="top" title="Transfers"><i class="fas fa-arrow-right-arrow-left"></i></a>
<a class="sidebar-link" href="/random_post" data-bs-toggle="tooltip" data-bs-placement="top" title="Random Post"><i class="fas fa-random"></i></a> <a class="sidebar-link" href="/random_post" data-bs-toggle="tooltip" data-bs-placement="top" title="Random Post"><i class="fas fa-random"></i></a>
{% if IS_FISTMAS() %} {% if IS_FISTMAS %}
<span class="sidebar-link" data-nonce="{{g.nonce}}" data-onclick="postToastRoastEventDarkmode(this, '/events/fistmas2022/darkmode')" style="display:inline" data-bs-toggle="tooltip" data-bs-placement="top" title="Toggle Dark Mode"><i class="fas fa-moon-over-sun"></i></span> <span class="sidebar-link" data-nonce="{{g.nonce}}" data-onclick="postToastRoastEventDarkmode(this, '/events/fistmas2022/darkmode')" style="display:inline" data-bs-toggle="tooltip" data-bs-placement="top" title="Toggle Dark Mode"><i class="fas fa-moon-over-sun"></i></span>
{% endif %} {% endif %}
</p> </p>
@ -75,6 +75,6 @@
</div> </div>
</div> </div>
{% if IS_FISTMAS() %} {% if IS_FISTMAS %}
<script defer src="{{'fistmas/js/darkmode.js' | asset}}"></script> <script defer src="{{'fistmas/js/darkmode.js' | asset}}"></script>
{% endif %} {% endif %}

View File

@ -28,7 +28,7 @@
<div id="username" class="d-none">{{u.username}}</div> <div id="username" class="d-none">{{u.username}}</div>
{% endif %} {% endif %}
<script defer src="{{'js/userpage.js' | asset}}"></script> <script defer src="{{'js/userpage.js' | asset}}"></script>
{% if not IS_FISTMAS() or SITE_NAME == 'WPD' %} {% if not IS_FISTMAS or SITE_NAME == 'WPD' %}
<script defer src="{{'js/profile_song.js' | asset}}"></script> <script defer src="{{'js/profile_song.js' | asset}}"></script>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

@ -99,7 +99,7 @@
{% if v.agendaposter %} {% if v.agendaposter %}
<link rel="stylesheet" href="{{('css/agendaposter.css') | asset}}"> <link rel="stylesheet" href="{{('css/agendaposter.css') | asset}}">
{% endif %} {% endif %}
{% if include_user_css and not IS_FISTMAS() %} {% if include_user_css and not IS_FISTMAS %}
{% if v.theme == 'classic_dark' %} {% if v.theme == 'classic_dark' %}
<link rel="stylesheet" href="{{('css/classic.css') | asset}}"> <link rel="stylesheet" href="{{('css/classic.css') | asset}}">
{% endif %} {% endif %}
@ -123,7 +123,7 @@
<link rel="stylesheet" href="/h/{{sub}}/css"> <link rel="stylesheet" href="/h/{{sub}}/css">
{% endif %} {% endif %}
{% if IS_FISTMAS() %} {% if IS_FISTMAS %}
<link rel="stylesheet" href="{{'fistmas/css/fistmas.css' | asset}}"> <link rel="stylesheet" href="{{'fistmas/css/fistmas.css' | asset}}">
{% if v and v.event_darkmode %} {% if v and v.event_darkmode %}