Quantcast

[Mayan EDMS: 1563] Disable Thumbnails in list view

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mayan EDMS: 1563] Disable Thumbnails in list view

Lutz Findeisen
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mayan EDMS: 1608] Re: Disable Thumbnails in list view

rosarior
Administrator
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...