Better alt-text for thumbnails.

This commit is contained in:
Philippe O. Wagner 2017-03-01 00:50:53 +01:00 committed by GitHub
parent 8bc2dfe4c6
commit db64478d9f

View File

@ -70,7 +70,7 @@ class DocumentAdmin(CommonAdmin):
"img", "img",
src="/fetch/thumb/{}".format(obj.id), src="/fetch/thumb/{}".format(obj.id),
width=180, width=180,
alt="thumbnail", alt="Thumbnail of {}".format(obj.file_name),
title=obj.file_name title=obj.file_name
) )
return self._html_tag("a", png_img, href=obj.download_url) return self._html_tag("a", png_img, href=obj.download_url)