Skip to content

Commit

Permalink
Wagtail admin skeleton - use classnames template tag
Browse files Browse the repository at this point in the history
  • Loading branch information
lb- committed Feb 11, 2024
1 parent f65fc66 commit d00137b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Changelog
* Maintenance: Adjust Eslint rules for TypeScript files (Karthik Ayangar)
* Maintenance: Rename the React `Button` that only renders links (a element) to `Link` and remove unused prop & behavior that was non-compliant for aria role usage (Advik Kabra)
* Maintenance: Set up an `wagtail.models.AbstractWorkflow` model to support future customisations around workflows (Hossein)
* Maintenance: Improve `classnames` template tag to handle nested lists of strings (LB (Ben) Johnston)
* Maintenance: Improve `classnames` template tag to handle nested lists of strings, use template tag for admin `body` element (LB (Ben) Johnston)


6.0 (07.02.2024)
Expand Down
2 changes: 1 addition & 1 deletion docs/releases/6.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ depth: 1
* Adjust Eslint rules for TypeScript files (Karthik Ayangar)
* Rename the React `Button` that only renders links (a element) to `Link` and remove unused prop & behavior that was non-compliant for aria role usage (Advik Kabra)
* Set up an `wagtail.models.AbstractWorkflow` model to support future customisations around workflows (Hossein)
* Improve `classnames` template tag to handle nested lists of strings (LB (Ben) Johnston)
* Improve `classnames` template tag to handle nested lists of strings, use template tag for admin `body` element (LB (Ben) Johnston)


## Upgrade considerations
3 changes: 2 additions & 1 deletion wagtail/admin/templates/wagtailadmin/skeleton.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
{% block branding_favicon %}{% endblock %}
</head>
{% sidebar_collapsed as sidebar_collapsed %}
<body id="wagtail" class="{% block bodyclass %}{% endblock %} {% if sidebar_collapsed %}sidebar-collapsed{% endif %} {% if messages %}has-messages{% endif %}" data-controller="w-init" data-w-init-ready-class="ready">
{% fragment as bodyclass %}{% block bodyclass %}{% endblock %}{% endfragment %}
<body id="wagtail" class="{% classnames bodyclass sidebar_collapsed|yesno:"sidebar-collapsed," messages|yesno:"has-messages," %}" data-controller="w-init" data-w-init-ready-class="ready">
<div data-sprite></div>

<script src="{% versioned_static 'wagtailadmin/js/icons.js' %}" data-icon-url="{% url 'wagtailadmin_sprite' %}"></script>
Expand Down

0 comments on commit d00137b

Please sign in to comment.