kopia lustrzana https://github.com/wagtail/wagtail
Add alt attributes to images that was missing them
rodzic
70a749b10a
commit
aaf0f50c9c
wagtail
admin/templates/wagtailadmin
contrib/styleguide/templates/wagtailstyleguide
images/templates/wagtailimages/widgets
users/templates/wagtailusers/users
|
@ -9,7 +9,7 @@
|
|||
<div class="nice-padding">
|
||||
<p>{% trans "Your current profile picture:" %}</p>
|
||||
<p>
|
||||
<span class="avatar square"><img src="{% avatar_url request.user size=50 %}"></span>
|
||||
<span class="avatar square"><img src="{% avatar_url request.user size=50 %}" alt=""></span>
|
||||
</p>
|
||||
|
||||
<form action="{% url 'wagtailadmin_account_change_avatar' %}" method="POST" enctype="multipart/form-data">
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
{% blocktrans with last_mod=page.get_latest_revision.created_at %}Last modified: {{ last_mod }}{% endblocktrans %}
|
||||
{% if page.get_latest_revision.user %}
|
||||
{% blocktrans with modified_by=page.get_latest_revision.user.get_full_name|default:page.get_latest_revision.user.get_username %}by {{ modified_by }}{% endblocktrans %}
|
||||
<span class="avatar small"><img src="{% avatar_url page.get_latest_revision.user size=25 %}" /></span>
|
||||
<span class="avatar small"><img src="{% avatar_url page.get_latest_revision.user size=25 %}" alt="" /></span>
|
||||
{% endif %}
|
||||
<a href="{% url 'wagtailadmin_pages:revisions_index' page.id %}" class="underlined">{% trans 'Revisions' %}</a>
|
||||
{% endif %}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<h2>
|
||||
<a href="{% url 'wagtailadmin_pages:revisions_revert' page.id revision.id %}">{{ revision.created_at }}</a>
|
||||
<span class="unbold">
|
||||
{% trans 'by' context 'points to a user who created a revision' %}<span class="avatar small"><img src="{% avatar_url revision.user size=25 %}" /></span>{{ revision.user }}
|
||||
{% trans 'by' context 'points to a user who created a revision' %}<span class="avatar small"><img src="{% avatar_url revision.user size=25 %}" alt="" /></span>{{ revision.user }}
|
||||
</span>
|
||||
{% if revision == page.get_latest_revision %}({% trans 'Current draft' %}){% endif %}
|
||||
{% if revision == page.live_revision %}({% trans 'Live version' %}){% endif %}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<li class="footer" id="footer">
|
||||
<div class="account" id="account-settings" title="{% trans 'Edit your account' %}">
|
||||
<span class="avatar square avatar-on-dark">
|
||||
<img src="{% avatar_url request.user size=50 %}" />
|
||||
<img src="{% avatar_url request.user size=50 %}" alt="" />
|
||||
</span>
|
||||
<em class="icon icon-arrow-up-after">{{ request.user.first_name|default:request.user.get_username }}</em>
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{% load wagtailadmin_tags %}
|
||||
|
||||
<span class="avatar small">
|
||||
<img src="{% avatar_url user size=25 %}" />
|
||||
<img src="{% avatar_url user size=25 %}" alt="" />
|
||||
</span>
|
||||
|
||||
{{ user }}
|
||||
|
|
|
@ -780,9 +780,9 @@
|
|||
<h2>Misc formatters</h2>
|
||||
<h3>Avatar icons</h3>
|
||||
|
||||
<p><span class="avatar"><img src="{% avatar_url user size=50 %}" /></span> Avatar normal</p>
|
||||
<p><span class="avatar square"><img src="{% avatar_url user size=50 %}" /></span> Avatar square</p>
|
||||
<p><span class="avatar small"><img src="{% avatar_url user size=25 %}" /></span> Avatar small</p>
|
||||
<p><span class="avatar"><img src="{% avatar_url user size=50 %}" alt="" /></span> Avatar normal</p>
|
||||
<p><span class="avatar square"><img src="{% avatar_url user size=50 %}" alt="" /></span> Avatar square</p>
|
||||
<p><span class="avatar small"><img src="{% avatar_url user size=25 %}" alt="" /></span> Avatar small</p>
|
||||
|
||||
<h3>Status tags</h3>
|
||||
<div class="status-tag primary">Primary tag</div>
|
||||
|
@ -793,12 +793,12 @@
|
|||
<p>Add the following <code>div</code> around any items you wish to display with a spinner overlay and fading out</p>
|
||||
<p>Remove the "loading" class to disable the effect</p>
|
||||
<div class="loading-mask loading" style="width:200px">
|
||||
<img src="{% static 'wagtailadmin/images/wagtail-logo.svg' %}" width="200" />
|
||||
<img src="{% static 'wagtailadmin/images/wagtail-logo.svg' %}" width="200" alt="Wagtail" />
|
||||
</div>
|
||||
|
||||
<h3>Image transparency</h3>
|
||||
<p>It can be useful to show users the transparent areas of images. Add a transparency checkerboard with the <code>.show-transparency</code> on the <code>img</code> tag thus:</p>
|
||||
<img src="{% static 'wagtailadmin/images/wagtail-logo.svg' %}" width="200" class="show-transparency" />
|
||||
<img src="{% static 'wagtailadmin/images/wagtail-logo.svg' %}" width="200" class="show-transparency" alt="Wagtail" />
|
||||
</section>
|
||||
|
||||
<section id="icons" class="icons">
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
{% if image_a %}
|
||||
{% image image_a max-165x165 class="show-transparency" %}
|
||||
{% else %}
|
||||
<img>
|
||||
<img alt="">
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% if image %}
|
||||
{% image image max-165x165 class="show-transparency" title=image.title %}
|
||||
{% else %}
|
||||
<img>
|
||||
<img alt="">
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<tr>
|
||||
<td class="title" valign="top">
|
||||
<h2>
|
||||
<span class="avatar small"><img src="{% avatar_url user size=25 %}" /></span>
|
||||
<span class="avatar small"><img src="{% avatar_url user size=25 %}" alt="" /></span>
|
||||
<a href="{% url 'wagtailusers_users:edit' user.pk %}">{{ user.get_full_name|default:user.get_username }}</a>
|
||||
</h2>
|
||||
<ul class="actions">
|
||||
|
|
Ładowanie…
Reference in New Issue