From 1b7152930db8c7695860117b9796ee99b23aba6f Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Mon, 11 Jun 2018 13:51:37 +0200 Subject: [PATCH] Improve log display for small displays --- logs/templates/logs/entries.html | 34 +++++++++++++++++--------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/logs/templates/logs/entries.html b/logs/templates/logs/entries.html index 0a6dbf5..3ec45b5 100644 --- a/logs/templates/logs/entries.html +++ b/logs/templates/logs/entries.html @@ -58,22 +58,24 @@ {% endif %} {% if entries and not filter_nsfw %} - - - {% for entry in entries %} - - {% if request.user.is_staff %} - - {% endif %} - - - {{ entry.content|urlize }} - - {% endfor %} - -
- {% if entry.hidden %}{% else %}{% endif %} - {{ entry.created|date:"H:i:s" }}{% if entry.nick %}{{ entry.nick }}{% else %}*{% endif %}
+
+ + + {% for entry in entries %} + + {% if request.user.is_staff %} + + {% endif %} + + + {{ entry.content|urlize }} + + {% endfor %} + +
+ {% if entry.hidden %}{% else %}{% endif %} + {{ entry.created|date:"H:i:s" }}{% if entry.nick %}{{ entry.nick }}{% else %}*{% endif %}
+
{% elif entries %} {% include "nsfw/alert.html" with next_url=current_url %} {% endif %}