Merge pull request #194 from philippeowagner/master

Better alt-text for thumbnails.
This commit is contained in:
Daniel Quinn 2017-03-01 09:12:10 +00:00 committed by GitHub
commit 8b37160953

View File

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