-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes the tree navigation icons by using Wagtail's icon template tag in place of the icon CSS classes.
- Loading branch information
1 parent
8d7f8ce
commit eb6be19
Showing
1 changed file
with
12 additions
and
3 deletions.
There are no files selected for viewing
15 changes: 12 additions & 3 deletions
15
treemodeladmin/templates/treemodeladmin/includes/tree_result_row.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
{% load modeladmin_tags %} | ||
{% load modeladmin_tags wagtailadmin_tags %} | ||
|
||
<tr{{ row_attrs }}> | ||
{% for item in result %} | ||
{% result_row_value_display forloop.counter0 %} | ||
{% endfor %} | ||
{% if children.count > 0 %} | ||
<td class="children"> | ||
<a class="icon text-replace icon-arrow-right" title="Explore {{ obj }}'s {{ view.child_name_plural }}" href="{{ child_index_url }}">Explore {{ obj }}'s {{ view.child_name_plural }}</a> | ||
<a | ||
href="{{ child_index_url }}" | ||
title="Explore {{ obj }}'s {{ view.child_name_plural }}" | ||
aria-label="Explore {{ obj }}'s {{ view.child_name_plural }}" | ||
>{% icon name="arrow-right" classname="default" %}</a> | ||
</td> | ||
{% else %} | ||
<td class="no-children"> | ||
<a class="icon text-replace icon-plus-inverse" title="Add a {{ obj }} {{ view.child_name }}" href="{{ child_create_url }}">Add a {{ obj }} {{ view.child_name }}</a> | ||
<a | ||
href="{{ child_create_url }}" | ||
title="Add a {{ obj }} {{ view.child_name }}" | ||
aria-label="Add a {{ obj }} {{ view.child_name }}" | ||
>{% icon name="plus-inverse" classname="default" %}</a> | ||
</td> | ||
{% endif %} | ||
</tr> |