mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-13 18:17:02 +01:00
Fixing some style bits for my own OCD
This commit is contained in:
parent
dc222cefd4
commit
92e178cc59
2 changed files with 12 additions and 11 deletions
|
|
@ -62,11 +62,12 @@ class DocumentAdmin(admin.ModelAdmin):
|
|||
|
||||
def thumbnail(self, obj):
|
||||
png_img = self._html_tag(
|
||||
"img",
|
||||
src="/fetch/thumb/{}".format(obj.id),
|
||||
width=275,
|
||||
alt="thumbnail",
|
||||
title=obj.file_name)
|
||||
"img",
|
||||
src="/fetch/thumb/{}".format(obj.id),
|
||||
width=275,
|
||||
alt="thumbnail",
|
||||
title=obj.file_name
|
||||
)
|
||||
return self._html_tag("a", png_img, href=obj.download_url)
|
||||
thumbnail.allow_tags = True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue