Disable the fancybox caption link if the document is in the trash.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-10-02 02:53:55 -04:00
parent f6e39380af
commit bbfe35b8fd
2 changed files with 4 additions and 1 deletions

View File

@@ -7,6 +7,8 @@
saving the database and to only provision 1 database.
* Remove use of hard coded font icon for document page
rendering busy indicator.
* Disable the fancybox caption link if the document is
in the trash.
3.1.3 (2018-09-27)
==================

View File

@@ -59,7 +59,8 @@ class DocumentPageThumbnailWidget(object):
return render_to_string(
template_name='documents/widgets/document_thumbnail.html',
context={
'disable_title_link': False,
# Disable the clickable link if the document is in the trash
'disable_title_link': instance.in_trash,
'gallery_name': 'document_list',
'instance': instance,
'size_preview_width': setting_preview_width.value,