mirror of
https://git.sr.ht/~roxwize/mipilin
synced 2025-05-15 01:33:06 +00:00
admining
Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
parent
65c29b0564
commit
ccc894dc33
10 changed files with 111 additions and 41 deletions
|
@ -1,3 +1,18 @@
|
|||
mixin feed(feed, hideUser)
|
||||
if feed.length > 0
|
||||
#feed
|
||||
for update of feed
|
||||
.feed-update
|
||||
div
|
||||
a(href=`/users/${update.user}`)
|
||||
if !hideUser
|
||||
| #{update.user}
|
||||
strong= update.mood
|
||||
div= update.desc || "[no mood description provided]"
|
||||
div(title=update.date.toLocaleString())= update.relativeDate
|
||||
else
|
||||
span [no updates]
|
||||
|
||||
mixin invite_code_expiration(code)
|
||||
- const timestamp = code.expires.getTime()
|
||||
if timestamp === 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue