rDrama/files/templates/versions.html

36 lines
1.1 KiB
HTML
Raw Permalink Normal View History

2024-03-07 22:52:55 +00:00
{% extends "default.html" %}
2024-03-08 01:56:24 +00:00
{% block pagetitle %}Versions of /{% if obj.fullname.startswith('p_') %}post{% else %}comment{% endif %}/{{obj.id}}{% endblock %}
2024-03-07 22:52:55 +00:00
{% block content %}
2024-03-10 07:13:35 +00:00
<h2 class="my-4 py-md-2 d-none d-md-block">Versions of <a href="{{obj.permalink}}">/{% if obj.fullname.startswith('p_') %}post{% else %}comment{% endif %}/{{obj.id}}</a></h2>
<h4 class="my-4 py-md-2 d-md-none">Versions of <a href="{{obj.permalink}}">/{% if obj.fullname.startswith('p_') %}post{% else %}comment{% endif %}/{{obj.id}}</a></h4>
2024-03-07 22:52:55 +00:00
<div class="overflow-x-auto">
2024-04-05 11:44:46 +00:00
<table id="versions">
2024-03-07 22:52:55 +00:00
<thead>
<tr>
{% if obj.fullname.startswith('p_') %}
<th>Title</th>
{% endif %}
<th>Body</th>
</tr>
</thead>
2024-03-08 01:50:41 +00:00
<tr>
{% if obj.fullname.startswith('p_') %}
<td>{{obj.title_html | safe}}</td>
{% endif %}
<td>{{obj.body_html | safe}}</td>
</tr>
2024-03-07 22:52:55 +00:00
{% for edit in obj.edits %}
<tr>
{% if obj.fullname.startswith('p_') %}
<td>{{edit.old_title_html | safe}}</td>
{% endif %}
<td>{{edit.old_body_html | safe}}</td>
</tr>
{% endfor %}
</table>
</div>
{% endblock %}