mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: better user last active at field
This commit is contained in:
2 files changed
+3
-2
No files matched your search
@@ -497,6 +497,7 @@ judge_playground: 评测游乐场
|
|||||||
Judged At: 评测时间
|
Judged At: 评测时间
|
||||||
Judged By: 评测机
|
Judged By: 评测机
|
||||||
Judging Queue: 评测队列
|
Judging Queue: 评测队列
|
||||||
|
just now: 刚刚
|
||||||
Keep current expiration: 保持当前过期设置
|
Keep current expiration: 保持当前过期设置
|
||||||
Langs Config: 语言设置
|
Langs Config: 语言设置
|
||||||
langs: 语言
|
langs: 语言
|
||||||
|
|||||||
@@ -26,8 +26,8 @@
|
|||||||
{{ _('UID') }}: {{ udoc['_id'] }},
|
{{ _('UID') }}: {{ udoc['_id'] }},
|
||||||
{{ _('Registered at') }} {{ datetimeSpan(udoc['regat'])|safe }},
|
{{ _('Registered at') }} {{ datetimeSpan(udoc['regat'])|safe }},
|
||||||
{{ _('last login at') }} {{ datetimeSpan(udoc['loginat'])|safe }},
|
{{ _('last login at') }} {{ datetimeSpan(udoc['loginat'])|safe }},
|
||||||
{% if sdoc %}
|
{% if sdoc and sdoc.updateAt %}
|
||||||
{{ _('last active at') }} {{ datetimeSpan(sdoc['updateAt'])|safe }}.
|
{{ _('last active at') }} {{ datetimeSpan(sdoc['updateAt'])|safe if Date.now() - sdoc.updateAt.getTime() > 300000 else _('just now') }}.
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ _('currently offline') }}.
|
{{ _('currently offline') }}.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in new issue
Block a user