default nocss for WPD jannies except gtix

pull/226/head
Aevann 2024-04-17 18:16:41 +02:00
parent a43072b10f
commit d769677924
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ def inject_constants():
"environ":environ, "SITE":SITE, "SITE_NAME":SITE_NAME, "SITE_FULL":SITE_FULL, "OTHER_SITE_NAME":OTHER_SITE_NAME, "environ":environ, "SITE":SITE, "SITE_NAME":SITE_NAME, "SITE_FULL":SITE_FULL, "OTHER_SITE_NAME":OTHER_SITE_NAME,
"AUTOJANNY_ID":AUTOJANNY_ID, "MODMAIL_ID":MODMAIL_ID, "VAPID_PUBLIC_KEY":VAPID_PUBLIC_KEY, "AUTOJANNY_ID":AUTOJANNY_ID, "MODMAIL_ID":MODMAIL_ID, "VAPID_PUBLIC_KEY":VAPID_PUBLIC_KEY,
"listdir":listdir, "os_path":path, "listdir":listdir, "os_path":path,
"PIZZASHILL_ID":PIZZASHILL_ID, "DEFAULT_COLOR":DEFAULT_COLOR, "GTIX_ID":GTIX_ID, "DEFAULT_COLOR":DEFAULT_COLOR,
"COLORS":COLORS, "time":time, "PERMS":PERMS, "FEATURES":FEATURES, "COLORS":COLORS, "time":time, "PERMS":PERMS, "FEATURES":FEATURES,
"HOLE_REQUIRED":HOLE_REQUIRED, "HOLE_REQUIRED":HOLE_REQUIRED,
"DEFAULT_THEME":DEFAULT_THEME, "DESCRIPTION":DESCRIPTION, "DEFAULT_THEME":DEFAULT_THEME, "DESCRIPTION":DESCRIPTION,

View File

@ -6,7 +6,7 @@
{% if u and u.profile_background %} {% if u and u.profile_background %}
<link rel="stylesheet" href="{{('css/transparent.css') | asset}}"> <link rel="stylesheet" href="{{('css/transparent.css') | asset}}">
{% endif %} {% endif %}
{% if u and (u.profilecss or u.profile_background) and not request.values.get('nocss') and can_see(v, u) %} {% if u and (u.profilecss or u.profile_background) and can_see(v, u) and not request.values.get('nocss') and not (SITE_NAME == 'WPD' and v.admin_level and v.id != GTIX_ID) %}
<link rel="stylesheet" href="/@{{u.username}}/profilecss"> <link rel="stylesheet" href="/@{{u.username}}/profilecss">
{% endif %} {% endif %}
{% endblock %} {% endblock %}