forked from rDrama/rDrama
add cursormarsey toggle
parent
443615e14f
commit
54d7e1fe28
|
@ -258,6 +258,11 @@ class User(Base):
|
||||||
def poor(self):
|
def poor(self):
|
||||||
return session.get('poor')
|
return session.get('poor')
|
||||||
|
|
||||||
|
@property
|
||||||
|
@lazy
|
||||||
|
def cursormarsey(self):
|
||||||
|
return session.get('cursormarsey', True)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def num_of_bought_awards(self):
|
def num_of_bought_awards(self):
|
||||||
|
|
|
@ -174,6 +174,10 @@ def settings_personal_post(v):
|
||||||
if badge:
|
if badge:
|
||||||
g.db.delete(badge)
|
g.db.delete(badge)
|
||||||
|
|
||||||
|
elif not updated and request.values.get("cursormarsey", v.cursormarsey) != v.cursormarsey:
|
||||||
|
updated = True
|
||||||
|
session["cursormarsey"] = int(request.values.get("cursormarsey") == 'true')
|
||||||
|
|
||||||
elif not updated and request.values.get("marsify", v.marsify) != v.marsify and v.marsify <= 1:
|
elif not updated and request.values.get("marsify", v.marsify) != v.marsify and v.marsify <= 1:
|
||||||
if not v.patron:
|
if not v.patron:
|
||||||
abort(403, f"Perma-marsify is only available to {patron}s!")
|
abort(403, f"Perma-marsify is only available to {patron}s!")
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
{{html_head.stylesheets_lower()}}
|
{{html_head.stylesheets_lower()}}
|
||||||
<script defer src="{{'js/bottom.js' | asset}}"></script>
|
<script defer src="{{'js/bottom.js' | asset}}"></script>
|
||||||
|
|
||||||
{% if SITE_NAME == 'rDrama' %}
|
{% if not v or v.cursormarsey %}
|
||||||
<div id="cursormarsey"></div>
|
<div id="cursormarsey"></div>
|
||||||
<div id="cursormarsey-heart" class="d-none"></div>
|
<div id="cursormarsey-heart" class="d-none"></div>
|
||||||
<script defer src="{{'js/cursormarsey.js' | asset}}"></script>
|
<script defer src="{{'js/cursormarsey.js' | asset}}"></script>
|
||||||
|
|
|
@ -249,6 +249,7 @@
|
||||||
{{common.toggle_section('Private Mode', 'privateswitch', 'private', v.is_private, 'This will hide your profile page from others.', false)}}
|
{{common.toggle_section('Private Mode', 'privateswitch', 'private', v.is_private, 'This will hide your profile page from others.', false)}}
|
||||||
{{common.toggle_section('Lifetime donated visiblity', 'lifetimedonated_visible', 'lifetimedonated_visible', v.lifetimedonated_visible, 'Make the "lifetime donated" field in your profile visible to everyone instead of just you.', false)}}
|
{{common.toggle_section('Lifetime donated visiblity', 'lifetimedonated_visible', 'lifetimedonated_visible', v.lifetimedonated_visible, 'Make the "lifetime donated" field in your profile visible to everyone instead of just you.', false)}}
|
||||||
|
|
||||||
|
{{common.toggle_section('Cursor Marsey', 'cursormarsey', 'cursormarsey', v.cursormarsey, 'Have a cute marsey accompany you during your journey on the site.', false)}}
|
||||||
{{common.toggle_section('Spider', 'spiderswitch', 'spider', v.spider, 'Have a spider friend accompany you during your journey on the site.', v.spider > 1)}}
|
{{common.toggle_section('Spider', 'spiderswitch', 'spider', v.spider, 'Have a spider friend accompany you during your journey on the site.', v.spider > 1)}}
|
||||||
{{common.toggle_section('Marsify', 'marsify', 'marsify', v.marsify, 'Automatically insert relevant marseys into your future comments.', v.marsify > 1)}}
|
{{common.toggle_section('Marsify', 'marsify', 'marsify', v.marsify, 'Automatically insert relevant marseys into your future comments.', v.marsify > 1)}}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue