Online/Offline for time

This commit is contained in:
Natsumi
2020-12-13 20:13:55 +13:00
committed by pypy
parent efa7fbb857
commit 34a3b2518b
2 changed files with 27 additions and 0 deletions

View File

@@ -767,6 +767,14 @@ html
span.name Avatar Copying
span.extra(v-if="userDialog.ref.allowAvatarCopying" style="color:#67C23A") Allow
span.extra(v-else style="color:#F56C6C") Deny
.x-friend-item
.detail
span.name(v-if="userDialog.ref.state != 'offline' && userDialog.ref.state != 'active' && userDialog.ref.state != ''") Online For
span.name(v-else) Offline For
span.extra
timer(v-if="userDialog.ref.state != 'offline' && userDialog.ref.state != 'active' && userDialog.ref.state != ''" :epoch="userDialog.ref.$online_for")
timer(v-else-if="userDialog.ref.$offline_for" :epoch="userDialog.ref.$offline_for")
span(v-else) -
.x-friend-item
.detail
span.name Last Login