MarseyWorld/files/templates/versions.html

25 lines
905 B
HTML

{% extends "default.html" %}
{% block pagetitle %}Versions of /{% if obj.fullname.startswith('p_') %}post{% else %}comment{% endif %}/{{obj.id}}{% endblock %}
{% block content %}
<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>
<hr class="chunky-hr">
{% if obj.fullname.startswith('p_') %}
<h3>{{obj.title_html | safe}}</h3>
{% endif %}
{{obj.body_html | safe}}
{% for edit in obj.edits %}
<hr class="chunky-hr">
{% if obj.fullname.startswith('p_') %}
<h3>{{edit.old_title_html | safe}}</h3>
{% endif %}
{{edit.old_body_html | safe}}
{% endfor %}
<hr class="chunky-hr">
{% endblock %}