From daee0db192016187740d02811ea0a315524c2c24 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 17 May 2024 03:22:42 +0300 Subject: [PATCH] improve edit versions --- files/templates/versions.html | 41 +++++++++++++---------------------- 1 file changed, 15 insertions(+), 26 deletions(-) diff --git a/files/templates/versions.html b/files/templates/versions.html index 77179b46f..576039a4b 100644 --- a/files/templates/versions.html +++ b/files/templates/versions.html @@ -4,32 +4,21 @@

Versions of /{% if obj.fullname.startswith('p_') %}post{% else %}comment{% endif %}/{{obj.id}}

Versions of /{% if obj.fullname.startswith('p_') %}post{% else %}comment{% endif %}/{{obj.id}}

-
- - - - {% if obj.fullname.startswith('p_') %} - - {% endif %} - - - +
- - {% if obj.fullname.startswith('p_') %} - - {% endif %} - - + {% if obj.fullname.startswith('p_') %} +

{{obj.title_html | safe}}

+ {% endif %} - {% for edit in obj.edits %} - - {% if obj.fullname.startswith('p_') %} - - {% endif %} - - - {% endfor %} -
TitleBody
{{obj.title_html | safe}}{{obj.body_html | safe}}
{{edit.old_title_html | safe}}{{edit.old_body_html | safe}}
-
+ {{obj.body_html | safe}} + + {% for edit in obj.edits %} +
+ {% if obj.fullname.startswith('p_') %} +

{{edit.old_title_html | safe}}

+ {% endif %} + {{edit.old_body_html | safe}} + {% endfor %} + +
{% endblock %}