Show create/modify/update time

This commit is contained in:
David Hoppenbrouwers
2022-10-07 23:30:05 +02:00
parent dc2fbde8ab
commit 1eb77bc340
7 changed files with 156 additions and 24 deletions

View File

@@ -1,6 +1,10 @@
{% macro author(name, ctime, mtime) %}
<p><sub><i>{{ name }} - {{ format_since(ctime) }}{% if ctime != mtime %} (last modified {{ format_since(mtime) }}){% endif %}</i></sub></p>
{% endmacro %}
{% macro render_comment_pre(comment) %}
<div class=comment>
<p><sub><i>{{ comment.author }}</i></sub></p>
{{ author(comment.author, comment.create_time, comment.modify_time) }}
<p>{{ comment.text }}</p>
{% endmacro %}