1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #31349 -- Used :nth-child() CSS pseudo-class to style alternative rows in admin.

This commit is contained in:
Jon Dufresne
2020-03-07 09:35:59 -08:00
committed by Mariusz Felisiak
parent ec292f261d
commit eb77e80de0
11 changed files with 31 additions and 65 deletions

View File

@@ -30,7 +30,7 @@
{% if result.form.non_field_errors %}
<tr><td colspan="{{ result|length }}">{{ result.form.non_field_errors }}</td></tr>
{% endif %}
<tr class="{% cycle 'row1' 'row2' %}">{% for item in result %}{{ item }}{% endfor %}</tr>
<tr>{% for item in result %}{{ item }}{% endfor %}</tr>
{% endfor %}
</tbody>
</table>