Also the default view in the Document model would need to be changed from
the document image view URL to the properties URL to make sure users that
can't view a document's images land on the document image view URL and get
an error. This will mean two clicks to be able to view a document (one
click to land on the document's properties another click to switch to the
image view) or one click + a redirect for users with the permission (one
click to land on the document's properties and an automatic redirect to the
document image view).
On Monday, July 24, 2017 at 11:36:54 PM UTC-4, Roberto Rosario wrote:
>
> Ideally I would prefer to tie this to a permission. The document view
> permission already exists so it would need to be re-purposed and create a
> new permission to "view" the documents basic data/properties and add a new
> permission something like 'document images view'. Having two "view"
> permissions could be confusing but it will be more in-line with how things
> work already.
>
> On Tuesday, July 11, 2017 at 8:13:19 PM UTC-4, David Kornahrens wrote:
>>
>> Or, disable the thumbnail view for specific users. We may not want some
>> interns and such seeing all the data within the portal.
>>
>> On Tuesday, July 11, 2017 at 5:26:05 PM UTC-4, Lutz Findeisen wrote:
>>>
>>> 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.