From bd970943de63edf9f5314b9bb3cd1275375efb52 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Sun, 17 Jul 2022 17:48:12 -0700 Subject: [PATCH] Add user IP and token to posts in-line for staff Signed-off-by: Alek Ratzloff --- board/templates/board/base.html | 7 ++++--- board/templates/board/post_snippet.html | 12 +++++++++++- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/board/templates/board/base.html b/board/templates/board/base.html index 5e50f0f..9334072 100644 --- a/board/templates/board/base.html +++ b/board/templates/board/base.html @@ -9,10 +9,11 @@ {% block extrastyle %}{% endblock %} - - - + + + {% if user.is_staff %} + {% endif %} {% block extrajs %}{% endblock %} diff --git a/board/templates/board/post_snippet.html b/board/templates/board/post_snippet.html index 31c349d..22d47f1 100644 --- a/board/templates/board/post_snippet.html +++ b/board/templates/board/post_snippet.html @@ -18,7 +18,7 @@ {% endif %} - {# Post ID, status icons, username, time #} + {# Post ID, status icons, username, time, admin info #} #. {{post.id}} {% if post.subject %} @@ -35,6 +35,15 @@ at {{post_created}} {% endblocktranslate %} + {# staff inline items #} + {% if user.is_staff %} + + {% endif %} + {% if post.sticky and not post.op %} {% endif %} @@ -45,6 +54,7 @@ {% if reply_link %} [{% translate "Reply" %}] {% endif %} +