Opened 2 hours ago
Last modified 2 hours ago
#37378 assigned Bug
Extra empty breadcrumb in admindocs model_index.html — at Initial Version
| Reported by: | Jacob Walls | Owned by: | Jacob Walls |
|---|---|---|---|
| Component: | contrib.admindocs | Version: | 6.1 |
| Severity: | Release blocker | Keywords: | |
| Cc: | Antoliny | Triage Stage: | Unreviewed |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | yes |
Description
This HTML typo creates an extra <li> and very likely an extra breadcrumb. I can confirm when writing a test. Visual regression in bc03f1064e10fa247a46d4e8a98ba9b26aa4790d.
-
django/contrib/admindocs/templates/admin_doc/model_index.html
diff --git a/django/contrib/admindocs/templates/admin_doc/model_index.html b/django/contrib/admindocs/templates/admin_doc/model_index.html index 590cb34b95..82f0a9cb8a 100644
a b 6 6 {% block breadcrumbs %} 7 7 <ol class="breadcrumbs"> 8 8 <li><a href="{% url 'admin:index' %}">{% translate 'Home' %}</a></li> 9 <li><a href="{% url 'django-admindocs-docroot' %}">{% translate 'Documentation' %}</a>< li>9 <li><a href="{% url 'django-admindocs-docroot' %}">{% translate 'Documentation' %}</a></li> 10 10 <li aria-current="page">{% translate 'Models' %}</li> 11 11 </ol> 12 12 {% endblock %}
Note:
See TracTickets
for help on using tickets.