Skip to content

Commit

Permalink
Remove unnecessary utility classes from page title icons
Browse files Browse the repository at this point in the history
  • Loading branch information
gasman committed Sep 21, 2023
1 parent 9d1b380 commit fa5decf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
<div class="title-wrapper">
{% if page.is_site_root %}
{% if perms.wagtailcore.add_site or perms.wagtailcore.change_site or perms.wagtailcore.delete_site %}
<a href="{% url 'wagtailsites:index' %}" title="{% trans 'Sites menu' %}">{% icon name="site" classname="initial w-align-text-top" %}</a>
<a href="{% url 'wagtailsites:index' %}" title="{% trans 'Sites menu' %}">{% icon name="site" classname="initial" %}</a>
{% endif %}
{% endif %}

{% if page_perms.can_edit %}
<a href="{% url 'wagtailadmin_pages:edit' page.id %}" title="{% trans 'Edit this page' %}">
{% if not page.is_site_root and not page.is_leaf %}{% icon name="folder" classname="initial w-align-text-top" %}{% endif %}
{% if not page.is_site_root and not page.is_leaf %}{% icon name="folder" classname="initial" %}{% endif %}
{{ page.get_admin_display_title }}
</a>
{% else %}
{% if not page.is_site_root and not page.is_leaf %}{% icon name="folder" classname="initial w-align-text-top" %}{% endif %}
{% if not page.is_site_root and not page.is_leaf %}{% icon name="folder" classname="initial" %}{% endif %}
{{ page.get_admin_display_title }}
{% endif %}

Expand Down

0 comments on commit fa5decf

Please sign in to comment.