Show document thumbnail in document ocr queue list
This commit is contained in:
@@ -42,6 +42,10 @@ def queue_document_list(request, queue_name='default'):
|
||||
'object_name':_(u'document queue'),
|
||||
'extra_columns':[
|
||||
{'name':'document', 'attribute': lambda x: '<a href="%s">%s</a>' % (x.document.get_absolute_url(), x.document) if hasattr(x, 'document') else _(u'Missing document.')},
|
||||
{'name':_(u'thumbnail'), 'attribute':
|
||||
lambda x: '<a class="fancybox" href="%s"><img src="%s" /></a>' % (reverse('document_preview', args=[x.id]),
|
||||
reverse('document_thumbnail', args=[x.id]))
|
||||
},
|
||||
{'name':'submitted', 'attribute': lambda x: unicode(x.datetime_submitted).split('.')[0], 'keep_together':True},
|
||||
{'name':'state', 'attribute': lambda x: x.get_state_display()},
|
||||
{'name':'result', 'attribute':'result'},
|
||||
|
||||
Reference in New Issue
Block a user