Show thumbnails and previews for deleted documents.

This commit is contained in:
Roberto Rosario
2015-10-14 15:23:02 -04:00
parent 00f1f25ecf
commit bdc15fb518
3 changed files with 21 additions and 6 deletions
+10
View File
@@ -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'
)