Show the document type being uploaded in the source view title.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-09-12 02:02:35 -04:00
parent 962f395831
commit e42ea89db7
3 changed files with 6 additions and 4 deletions

View File

@@ -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

View File

@@ -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
--------

View File

@@ -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(