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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
--------
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user