web/quotes: switch to pre-wrap to format better on mobile

This commit is contained in:
Luke Granger-Brown 2021-01-21 00:21:49 +00:00
parent de8bb349f0
commit 2909cc2bcb

View file

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