From eb6be198b8613539b23ee8f44014905ae5b64fdd Mon Sep 17 00:00:00 2001 From: Will Barton Date: Wed, 24 Apr 2024 13:13:23 -0400 Subject: [PATCH] Fix navigation icons This fixes the tree navigation icons by using Wagtail's icon template tag in place of the icon CSS classes. --- .../treemodeladmin/includes/tree_result_row.html | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/treemodeladmin/templates/treemodeladmin/includes/tree_result_row.html b/treemodeladmin/templates/treemodeladmin/includes/tree_result_row.html index f356a6f..4da9b15 100644 --- a/treemodeladmin/templates/treemodeladmin/includes/tree_result_row.html +++ b/treemodeladmin/templates/treemodeladmin/includes/tree_result_row.html @@ -1,15 +1,24 @@ -{% load modeladmin_tags %} +{% load modeladmin_tags wagtailadmin_tags %} + {% for item in result %} {% result_row_value_display forloop.counter0 %} {% endfor %} {% if children.count > 0 %} - Explore {{ obj }}'s {{ view.child_name_plural }} + {% icon name="arrow-right" classname="default" %} {% else %} - Add a {{ obj }} {{ view.child_name }} + {% icon name="plus-inverse" classname="default" %} {% endif %}