headline/view/templates/article_detail.html
Ondřej Nývlt f8055c75b4 Style diff
2023-08-17 17:28:19 +02:00

31 lines
711 B
HTML

{% extends "base.html" %}
{% block body %}
<div class="container article-detail">
<h1>
Diffs for the article at
<a href="{{ article_url }}">{{ article_url|truncate(50) }}</a>
</h1>
<div class="card">
<table class="article-detail-diffs">
{% for diff in diffs %}
<tr>
<th>{{ diff.diff_time }}</th>
<td>
<table>
<tr>
<th class="text-caption table-head">Before</th>
<td class="diff-before">{{ diff.diff_html|safe }}</td>
</tr>
<tr>
<th class="text-caption table-head">After</th>
<td class="diff-after">{{ diff.diff_html|safe }}</td>
</tr>
</table>
</td>
</tr>
{% endfor %}
</table>
</div>
</div>
{% endblock body %}