- Bump djLint to 1.29.0 (from 1.25.0) in the CI linting scripts (#4907)

- Add alt attribute to the img tags in the templates (required by the bump)
This commit is contained in:
Miklós Márton 2023-05-27 00:52:10 +02:00 committed by GitHub
parent 11f816a787
commit 21dafdee8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -41,6 +41,6 @@ repos:
args: [requirements.in, -o, requirements.txt]
files: ^requirements\.(in|txt)$
- repo: https://github.com/Riverside-Healthcare/djLint
rev: v1.25.0
rev: v1.29.0
hooks:
- id: djlint-django

View File

@ -15,7 +15,7 @@
{% endblock breadcrumbs %}
{% block thumbnail %}
<img class="part-thumb"
<img alt="{% trans "Part thumbnail" %}" class="part-thumb"
{% if build.part.image %}
src="{{ build.part.image.preview.url }}"
{% else %}

View File

@ -92,7 +92,7 @@
{% endblock actions %}
{% block thumbnail %}
<img class='part-thumb'
<img alt="{% trans "Supplier part thumbnail" %}" class='part-thumb'
{% if order.supplier and order.supplier.image %}
src="{{ order.supplier.image.url }}"
{% else %}

View File

@ -15,7 +15,7 @@
{% endblock breadcrumbs %}
{% block thumbnail %}
<img class='part-thumb'
<img alt="{% trans "Customer logo thumbnail" %}" class='part-thumb'
{% if order.customer and order.customer.image %}
src="{{ order.customer.image.url }}"
{% else %}

View File

@ -15,7 +15,7 @@
{% endblock breadcrumbs %}
{% block thumbnail %}
<img class='part-thumb'
<img alt="{% trans "Customer logo thumbnail" %}" class='part-thumb'
{% if order.customer and order.customer.image %}
src="{{ order.customer.image.url }}"
{% else %}