misc: include job label in page <title> (#73416)

This commit is contained in:
Frédéric Péters 2023-01-14 09:38:47 +01:00 committed by Gitea
parent 093a8ec7c9
commit 05ffc8ae5d
1 changed files with 1 additions and 1 deletions

View File

@ -257,13 +257,13 @@ class RootDirectory(BackofficeRootDirectory):
return menu_items
def processing(self):
html_top('/')
try:
job = AfterJob.get(get_request().form.get('job'))
except KeyError:
return redirect('.')
get_response().add_javascript(['jquery.js', 'afterjob.js'])
html_top('/', title=job.label)
return template.QommonTemplateResponse(
templates=['wcs/backoffice/processing.html'], context={'job': job}
)