misc: include job label in page <title> (#73416)
This commit is contained in:
parent
093a8ec7c9
commit
05ffc8ae5d
|
@ -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}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue