From 39b6a6025713954d970c70cddf6bbcfa7b130639 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Wed, 18 Dec 2024 23:48:22 +0100 Subject: [PATCH] view_ip.html: use user_posts_list.html --- templates/mod/view_ip.html | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/templates/mod/view_ip.html b/templates/mod/view_ip.html index 78fce4a9..6cc0c83f 100644 --- a/templates/mod/view_ip.html +++ b/templates/mod/view_ip.html @@ -1,4 +1,4 @@ -{% if mod|hasPermission(config.mod.view_notes) %} +{% if mod|hasPermission(config.mod.view_notes) and notes is not null %}
{% set notes_on_record = 'note' ~ (notes|count != 1 ? 's' : '') ~ ' on record' %} @@ -201,18 +201,7 @@
{% endif %} -{% for board_posts in posts %} -
- - - {{ config.board_abbreviation|sprintf(board_posts.board.uri) }} - - - {{ board_posts.board.title|e }} - - - {{ board_posts.posts|join('
') }} -
-{% endfor %} +{{ include('mod/user_posts_list.html', {posts: posts}) }}
[Page 1] {% if cursor_prev %}