Add alt attribute to most used img tags
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -17,8 +17,8 @@ def widget_transition_events(transition):
|
|||||||
|
|
||||||
def widget_workflow_diagram(workflow):
|
def widget_workflow_diagram(workflow):
|
||||||
return mark_safe(
|
return mark_safe(
|
||||||
'<img class="img-responsive" src="{}" style="margin:auto;">'.format(
|
'<img alt="{}" class="img-responsive" src="{}" style="margin:auto;">'.format(
|
||||||
reverse(
|
_('Workflow preview'), reverse(
|
||||||
viewname='document_states:workflow_image', kwargs={
|
viewname='document_states:workflow_image', kwargs={
|
||||||
'pk': workflow.pk
|
'pk': workflow.pk
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
{% extends 'appearance/base_plain.html' %}
|
{% extends 'appearance/base_plain.html' %}
|
||||||
|
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
{% load documents_tags %}
|
{% load documents_tags %}
|
||||||
|
|
||||||
{% block title %}{{ title }}{% endblock title %}
|
{% block title %}{{ title }}{% endblock title %}
|
||||||
@@ -7,6 +9,7 @@
|
|||||||
{% block content_plain %}
|
{% block content_plain %}
|
||||||
{% for page in pages %}
|
{% for page in pages %}
|
||||||
<img
|
<img
|
||||||
|
alt="{% trans 'Document page image preview' %}"
|
||||||
src="{% get_api_image_url page width=width height=height %}" style="width: 100%;"
|
src="{% get_api_image_url page width=width height=height %}" style="width: 100%;"
|
||||||
/>
|
/>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
{% load i18n %}
|
||||||
|
|
||||||
{% load appearance_tags %}
|
{% load appearance_tags %}
|
||||||
{% load documents_tags %}
|
{% load documents_tags %}
|
||||||
|
|
||||||
@@ -8,6 +10,7 @@
|
|||||||
{% get_icon 'mayan.apps.documents.icons.icon_document_image_loading' %}
|
{% get_icon 'mayan.apps.documents.icons.icon_document_image_loading' %}
|
||||||
</span>
|
</span>
|
||||||
<img
|
<img
|
||||||
|
alt="{% trans 'Document image' %}"
|
||||||
class="thin_border {{ image_classes }}"
|
class="thin_border {{ image_classes }}"
|
||||||
data-url="{% get_api_image_url instance width=image_width height=image_height zoom=image_zoom rotation=image_rotation %}"
|
data-url="{% get_api_image_url instance width=image_width height=image_height zoom=image_zoom rotation=image_rotation %}"
|
||||||
src="#"
|
src="#"
|
||||||
|
|||||||
Reference in New Issue
Block a user