forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-02-04 18:02:05 +02:00
parent d4b9a50373
commit 5117ad13f7
2 changed files with 11 additions and 1 deletions

View File

@ -795,7 +795,7 @@ def agendaposter(user_id, v):
if expiry:
expiry = float(expiry)
expiry = g.timestamp + expiry*60*60*24
else: expiry = 0
else: expiry = g.timestamp + 2629746
user.agendaposter = not user.agendaposter
user.agendaposter_expires_utc = expiry

View File

@ -129,6 +129,16 @@
</div>
<p class="text-small mb-2">Or type a color code:</p>
<div class="d-flex">
<form action="/settings/themecolor" id="color-code-form" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<input class="form-control" type="text" name="themecolor" id="color-code" value="{% if v.themecolor %}{{v.themecolor}}{% endif %}">
<label class="btn btn-secondary text-capitalize mr-2 mt-2 mb-0">Update<input type="text" for="color-code" onclick="form.submit()" hidden=""></label>
</form>
</div>
</div>
<div class="d-lg-flex border-bottom">
<div class="title w-lg-25">