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

8 lines
371 B
HTML

<div>
<p><a href="/{{ quote.id }}/">#{{ quote.id }}</a></p>
<pre>{{ quote.quote }}</pre>
<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>