rfds
This commit is contained in:
parent
5815c571bd
commit
2e195b5446
11 changed files with 15 additions and 18 deletions
BIN
files/assets/images/astolfo.webp
Normal file
BIN
files/assets/images/astolfo.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 110 KiB |
Binary file not shown.
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 15 KiB |
Binary file not shown.
Before Width: | Height: | Size: 157 KiB After Width: | Height: | Size: 5.4 KiB |
|
@ -11,6 +11,14 @@ function post(url) {
|
|||
function updatebgselection(){
|
||||
var bgselector = document.getElementById("backgroundSelector");
|
||||
const backgrounds = [
|
||||
{
|
||||
folder: "anime",
|
||||
backgrounds:
|
||||
[
|
||||
"1.webp",
|
||||
"2.webp"
|
||||
]
|
||||
},
|
||||
{
|
||||
folder: "fantasy",
|
||||
backgrounds:
|
||||
|
@ -59,14 +67,6 @@ function updatebgselection(){
|
|||
"5.webp",
|
||||
]
|
||||
},
|
||||
{
|
||||
folder: "anime",
|
||||
backgrounds:
|
||||
[
|
||||
"1.webp",
|
||||
"2.webp"
|
||||
]
|
||||
}
|
||||
]
|
||||
let bgContainer = document.getElementById(`bgcontainer`);
|
||||
let str = '';
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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" %}
|
||||
|
||||
|
|
|
@ -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" %}
|
||||
|
|
|
@ -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" %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue