diff --git a/HISTORY.rst b/HISTORY.rst index f6595eb4b2..3a88bde031 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -104,6 +104,8 @@ the workflow view permission is granted to at least one workflow. - Add ACL support to smart links. +- Add "no result" template to staging folder files + view. 3.2.9 (2019-11-03) ================== diff --git a/mayan/apps/sources/icons.py b/mayan/apps/sources/icons.py index 1b0a6c8c84..1274fa69d2 100644 --- a/mayan/apps/sources/icons.py +++ b/mayan/apps/sources/icons.py @@ -16,6 +16,7 @@ icon_setup_source_edit = Icon(driver_name='fontawesome', symbol='pencil-alt') icon_source_create = Icon(driver_name='fontawesome', symbol='plus') icon_source_list = Icon(driver_name='fontawesome', symbol='upload') icon_staging_folder = Icon(driver_name='fontawesome', symbol='folder') +icon_staging_folder_file = Icon(driver_name='fontawesome', symbol='file') icon_staging_file_delete = Icon(driver_name='fontawesome', symbol='times') icon_upload_view_link = Icon(driver_name='fontawesome', symbol='upload') icon_wizard_submit = Icon(driver_name='fontawesome', symbol='arrow-right') diff --git a/mayan/apps/sources/views.py b/mayan/apps/sources/views.py index 8085143921..2ad91df95a 100644 --- a/mayan/apps/sources/views.py +++ b/mayan/apps/sources/views.py @@ -30,7 +30,10 @@ from .exceptions import SourceException from .forms import ( NewDocumentForm, NewVersionForm, WebFormUploadForm, WebFormUploadFormHTML5 ) -from .icons import icon_log, icon_setup_sources, icon_upload_view_link +from .icons import ( + icon_log, icon_setup_sources, icon_staging_folder_file, + icon_upload_view_link +) from .literals import SOURCE_UNCOMPRESS_CHOICE_ASK, SOURCE_UNCOMPRESS_CHOICE_Y from .links import ( link_setup_source_create_imap_email, link_setup_source_create_pop3_email, @@ -155,6 +158,17 @@ class UploadBaseView(MultiFormView): 'name': 'appearance/generic_list_subtemplate.html', 'context': { 'hide_link': True, + + 'no_results_icon': icon_staging_folder_file, + 'no_results_text': _( + 'This could mean that the staging folder is ' + 'empty. It could also mean that the ' + 'operating system user account being used ' + 'for Mayan EDMS doesn\'t have the necessary ' + 'file system permissions for the folder.' + ), + 'no_results_title': _('No staging files available'), + 'object_list': staging_filelist, 'title': _('Files in staging path'), }