mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +08:00
9 lines
311 B
HTML
9 lines
311 B
HTML
{% import "components/user.html" as user with context %}
|
|
{% macro render_time(tdoc_time) %}
|
|
{{ datetimeSpan(tdoc_time, false, '%Y-%m-%d %H:%M')|safe }}
|
|
{% endmacro %}
|
|
|
|
{% macro render_extension(tdoc) %}
|
|
{{ ((tdoc['endAt'].getTime() - tdoc['penaltySince'].getTime())/ 1000 / 3600/ 24)|round(1) }}
|
|
{% endmacro %}
|