remotes/1693045480750635534/spooky-22
Aevann1 2022-04-14 19:20:00 +02:00
parent 396762f799
commit 543b9a73cb
7 changed files with 7 additions and 10 deletions

View File

@ -501,7 +501,7 @@ class User(Base):
@property
@lazy
def profile_url(self):
if self.agendaposter: return f"/e/chudsey.webp"
if self.agendaposter: return f"/assets/images/astolfo.webp"
if self.profileurl:
if self.profileurl.startswith('/'): return SITE_FULL + self.profileurl
return self.profileurl

View File

@ -34,7 +34,6 @@ tiers={
@auth_required
def removebackground(v):
v.background = None
v.theme = 'midnight'
g.db.add(v)
g.db.commit()
return {"message": "Background removed!"}
@ -53,7 +52,6 @@ def settings_profile_post(v):
if request.values.get("background", v.background) != v.background:
updated = True
v.background = request.values.get("background")
v.theme = 'transparent'
elif request.values.get("reddit", v.reddit) != v.reddit:
reddit = request.values.get("reddit")
@ -328,7 +326,6 @@ def settings_profile_post(v):
if theme in {"dramblr", "classic", "classic_dark", "transparent", "win98", "dark", "light", "coffee", "tron", "4chan", "midnight"}:
if theme == "transparent" and not v.background:
return {"error": "You need to set a background to use the transparent theme!"}
if theme != "transparent": v.background = None
v.theme = theme
if theme == "win98": v.themecolor = "30409f"
updated = True

View File

@ -223,7 +223,7 @@
</head>
<body id="{% if request.path != '/comments' %}{% block pagetype %}frontpage{% endblock %}{% endif %}" {% if SITE_NAME == 'rDrama' %}style="{% if path != '/formatting' %}overflow-x: hidden; {% endif %} background:url(/assets/images/backgrounds/anime/{{'2' if v and v.id == 8195 else '1'}}.webp) center center fixed; background-color: var(--background)"{% endif %}>
<body id="{% if request.path != '/comments' %}{% block pagetype %}frontpage{% endblock %}{% endif %}" {% if not v or v and (v.shadowbanned or v.is_banned or v.agendaposter) %}style="overflow-x: hidden;background:url(/assets/images/backgrounds/anime/1.webp?v=1) center center fixed; background-color: var(--background)"{% elif v and v.background %}style="{% if path != '/formatting' %}overflow-x: hidden; {% endif %} background:url(/assets/images/backgrounds/{{v.background}}?v=1) center center fixed; background-color: var(--background)"{% endif %}>
{% block Banner %}
{% if '@' not in request.path %}

View File

@ -58,7 +58,7 @@
{% endif %}
</head>
<body id="settings" {% if SITE_NAME == 'rDrama' %}style="overflow-x: hidden; background:url(/assets/images/backgrounds/anime/{{'2' if v and v.id == 8195 else '1'}}.webp) center center fixed; background-color: var(--background)"{% endif %}>
<body id="settings" {% if not v or v and (v.shadowbanned or v.is_banned or v.agendaposter) %}style="overflow-x: hidden;background:url(/assets/images/backgrounds/anime/1.webp?v=1) center center fixed; background-color: var(--background)"{% elif v and v.background %}style="overflow-x: hidden;background:url(/assets/images/backgrounds/{{v.background}}?v=1) center center fixed; background-color: var(--background)"{% endif %}>
{% include "header.html" %}
<div class="container">

View File

@ -46,7 +46,7 @@
{% endif %}
</head>
<body id="settings2" {% if SITE_NAME == 'rDrama' %}style="overflow-x: hidden; background:url(/assets/images/backgrounds/anime/{{'2' if v and v.id == 8195 else '1'}}.webp) center center fixed; background-color: var(--background)"{% endif %}>
<body id="settings2" {% if not v or v and (v.shadowbanned or v.is_banned or v.agendaposter) %}style="overflow-x: hidden;background:url(/assets/images/backgrounds/anime/1.webp?v=1) center center fixed; background-color: var(--background)"{% elif v and v.background %}style="overflow-x: hidden;background:url(/assets/images/backgrounds/{{v.background}}?v=1) center center fixed; background-color: var(--background)"{% endif %}>
{% include "header.html" %}

View File

@ -171,7 +171,7 @@
<p>Change the background for the website.</p>
<div class="input-group mb2">
<select autocomplete="off" id='backgroundSelector' class="form-control" form="profile-settings" name="background" onchange="updatebgselection();">
{% for entry in ["fantasy", "solarpunk", "pixelart"] %}
{% for entry in ["anime", "fantasy", "solarpunk", "pixelart"] %}
<option value="{{entry}}">
{{entry}}
</option>
@ -689,7 +689,7 @@
</div>
<script src="/assets/js/settings_profile.js?v=244"></script>
<script src="/assets/js/settings_profile.js?v=245"></script>
{% include "emoji_modal.html" %}
{% include "gif_modal.html" %}

View File

@ -55,7 +55,7 @@
{% endif %}
{% endblock %}
<body id="submit" {% if SITE_NAME == 'rDrama' %}style="overflow-x: hidden; background:url(/assets/images/backgrounds/anime/{{'2' if v and v.id == 8195 else '1'}}.webp) center center fixed; background-color: var(--background)display: block;"{% endif %}>
<body id="submit" {% if not v or v and (v.shadowbanned or v.is_banned or v.agendaposter) %}style="overflow-x: hidden;background:url(/assets/images/backgrounds/anime/1.webp?v=1) center center fixed; background-color: var(--background)"{% elif v and v.background %}style="overflow-x: hidden; background:url(/assets/images/backgrounds/{{v.background}}?v=1) center center fixed; background-color: var(--background)display: block;"{% endif %}>
{% include "header.html" %}