Added edit comments, user contributions and improved history page

This commit is contained in:
Yusur 2023-01-08 17:59:52 +01:00
parent f4d536dc47
commit d2cef14c38
6 changed files with 80 additions and 23 deletions

View file

@ -12,13 +12,22 @@
<ul>
{% for rev in history %}
<li><a href="/history/revision/{{ rev.id }}/">
#{{ rev.id }}
&middot;
{{ rev.pub_date.strftime("%B %-d, %Y %H:%M:%S") }}
<li>
<a href="/history/revision/{{ rev.id }}/">
#{{ rev.id }}
&middot;
{{ rev.pub_date.strftime("%B %-d, %Y %H:%M:%S") }}
{% if rev.comment %}
“{{ rev.comment }}”
{% endif %}
</a>
by
{{ rev.user.username }}
</a></li>
<a href="/u/{{ rev.user.username }}">
{{ rev.user.username }}
</a>
</li>
{% endfor %}
</ul>
<p>{{ T("back-to") }} <a href="{{ p.get_url() }}">{{ p.title }}</a>.</p>
{% endblock %}