forked from rDrama/rDrama
1
0
Fork 0

Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost

master
Aevann1 2022-08-30 11:55:31 +00:00
commit 8bff3774b0
3 changed files with 10 additions and 885 deletions

View File

@ -207,7 +207,14 @@ class Submission(Base):
@lazy
def author_name(self):
if self.ghost: return '👻'
if self.author.earlylife: return f'((({self.author.username})))'
if self.author.earlylife:
expiry = int(self.author.earlylife - time.time())
if expiry > 86400:
name = self.author.username
for i in range(int(expiry / 86400 + 1)):
name = f'((({name})))'
return name
return f'((({self.author.username})))'
return self.author.username
@property

View File

@ -325,7 +325,7 @@
<li class="mt-3">
{% if request.path == "/chat" %}
<h4 class="ml-3">Users in chat right now</h4>
<div id="online3" class="col text-left d-lg-none bg-white" style="max-width:300px"></div>
<div id="online3" class="col text-left d-lg-none bg-white mb-5" style="max-width:300px"></div>
<pre>
@ -333,6 +333,7 @@
</pre>
{% elif has_sidebar %}
{% include "sidebar_" + SITE_NAME + ".html" %}

File diff suppressed because one or more lines are too long