Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add backwards-compatible SVG breadcrumb icons #62

Closed
wants to merge 1 commit into from

Conversation

willbarton
Copy link
Member

Wagtail 2.11 adds SVG icons to admin breadcrumbs. This PR adds those SVG icons to the Flags admin pages. It also adds a context variable to determine whether or not the SVG breadcrumb icons are available, and if not, falls back on the old style of breadcrumbs. I've also taken the opportunity to define this context variable and 2.10's "action" item change in a single location in views.py.

I'm not really satisfied with creating a placeholder icon template tag nor with the feature-fencing context variables passing to templates, but I'm not sure of a better way. I'm very open to alternatives.

Wagtail 2.11 adds SVG icons to admin breadcrumbs. This change adds those SVG icons to the Flags admin pages.

It also adds a context variable to determine whether or not the SVG breadcrumb icons are available, and if not, falls back on the old style of breadcrumbs.

I've also taken the opportunity to define this context variable and 2.10's "action" item change in a single location in `views.py`.
@willbarton willbarton requested a review from a team December 15, 2020 22:02
@willbarton willbarton closed this Dec 16, 2020
@willbarton willbarton deleted the fix-breadcrumbs-211 branch December 16, 2020 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant