Hi Roberto,
just seen your answer today - wanted to say thanks though. Works like a 
charm, maybe you might want to think about exposing the thumbnails 
disabling via a setting.

cheers,
Lutz

Am Mittwoch, 19. April 2017 17:19:26 UTC+2 schrieb Roberto Rosario:
>
> There is no exposed way to disabled thumbnail display but it can be 
> disabled manually by removing or remarking the following lines in 
> mayan/apps/documents/apps.py
>
> Thumbnails for documents:
>
>
>          SourceColumn(
>             source=Document, label=_('Thumbnail'),
>             func=lambda context: document_thumbnail(
>                 context['object'], gallery_name='documents:document_list',
>                 size=setting_thumbnail_size.value,
>                 title=getattr(context['object'], 'label', None),
>             )
>         )
>
> The thumbnails for the deleted documents.
>
>
>         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
>             )
>         )
>
>
> The purpose of the SourceColumn class is to show a table column with a 
> specific `label` and the result of a function (func) when the presence of a 
> `source` class instance is detected in a table.
>
> On Tuesday, April 4, 2017 at 11:02:03 AM UTC-4, Lutz Findeisen wrote:
>>
>> Hi,
>> I'm using Mayan on a Raspberry PI, due to the limited performance of the 
>> PI the loading of the document list page takes quite long, particularly due 
>> to the thumbnail generation. Is there a way to disable/hide thumbnails on 
>> the documents list page maybe via a setting?
>>
>> Thanks in advance,
>> Lutz
>>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to