depot/web/quotes/templates/quotedb/_quote.html

8 lines
426 B
HTML

<div>
<p><a href="/{{ quote.id }}/">#{{ quote.id }}</a></p>
<p class="whitespace-pre-wrap font-mono">{{ quote.quote }}</p>
<p class="text-sm">added by <span class="font-mono">{{ quote.added_by.username }}</span> on <span class="font-mono">{{ quote.added_at }}</span></p>
{% if request.user == quote.added_by %}
<a href="/{{ quote.id }}/delete/" class="text-sm underline">del</a>
{% endif %}
</div>