diff --git a/HISTORY.rst b/HISTORY.rst index 44e004d9b7..f7d96c8b8d 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -134,7 +134,8 @@ edit view and the document upload view. Closes GitLab issue #360. - Add new dashboard item to display the total page count. - +- Show the document type being uploaded in the source view title. + 3.0.3 (2018-08-17) ================== - Tags app: Add explicit casting of escaped tag labels to prevent exploit diff --git a/docs/releases/3.1.rst b/docs/releases/3.1.rst index a6464db979..f4e5c5d2f6 100644 --- a/docs/releases/3.1.rst +++ b/docs/releases/3.1.rst @@ -350,7 +350,7 @@ classes beyond the provide line chart. edit view and the document upload view. Closes GitLab issue #360. - Add new dashboard item to display the total page count. - +- Show the document type being uploaded in the source view title. Removals -------- diff --git a/mayan/apps/sources/views.py b/mayan/apps/sources/views.py index 565abf52e9..8372ab19df 100644 --- a/mayan/apps/sources/views.py +++ b/mayan/apps/sources/views.py @@ -340,8 +340,9 @@ class UploadInteractiveView(UploadBaseView): def get_context_data(self, **kwargs): context = super(UploadInteractiveView, self).get_context_data(**kwargs) context['title'] = _( - 'Upload a local document from source: %s' - ) % self.source.label + 'Upload a document of type "%(document_type)s" from ' + 'source: %(source)s' + ) % {'document_type': self.document_type, 'source': self.source.label} if not isinstance(self.source, StagingFolderSource) and not isinstance(self.source, SaneScanner): context['subtemplates_list'][0]['context'].update(