mirror of
https://git.sr.ht/~roxwize/mipilin
synced 2025-05-15 01:33:06 +00:00
Some iprovements idfk
Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
parent
a3e6df6ce8
commit
961d963677
13 changed files with 160 additions and 102 deletions
8
views/_util.pug
Normal file
8
views/_util.pug
Normal file
|
@ -0,0 +1,8 @@
|
|||
mixin invite_code_expiration(code)
|
||||
- const timestamp = code.expires.getTime()
|
||||
if timestamp === 0
|
||||
td.subtle never
|
||||
else if Date.now() >= timestamp
|
||||
td.error EXPIRED
|
||||
else
|
||||
td= code.expiresString
|
Loading…
Add table
Add a link
Reference in a new issue