mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
- 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:
parent
11f816a787
commit
21dafdee8e
@ -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
|
||||
|
@ -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 %}
|
||||
|
@ -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 %}
|
||||
|
@ -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 %}
|
||||
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user