Show thumbnails and previews for deleted documents.
This commit is contained in:
@@ -154,6 +154,16 @@ class DocumentsApp(MayanAppConfig):
|
||||
func=lambda context: two_state_template(context['object'].enabled)
|
||||
)
|
||||
|
||||
SourceColumn(
|
||||
source=DeletedDocument, label=_('Thumbnail'),
|
||||
func=lambda context: document_thumbnail(
|
||||
context['object'],
|
||||
gallery_name='documents:delete_document_list',
|
||||
size=setting_thumbnail_size.value,
|
||||
title=getattr(context['object'], 'label', None),
|
||||
disable_title_link=True
|
||||
)
|
||||
)
|
||||
SourceColumn(
|
||||
source=DeletedDocument, label=_('Type'), attribute='document_type'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user