diff --git a/web/app/templates/jobs/job.html.j2 b/web/app/templates/jobs/job.html.j2 index 635d78a8..70cf4736 100644 --- a/web/app/templates/jobs/job.html.j2 +++ b/web/app/templates/jobs/job.html.j2 @@ -1,10 +1,29 @@ {% extends "nopaque.html.j2" %} -{% set headline = 'Job view'.format(service=job.service) %} +{% set headline = 'Job ({service}) - {title}'.format(service=job.service, title=job.title) %} +{% if job.service == 'file-setup' %} + {% set main_class = 'file-setup-color lighten' %} +{% elif job.service == 'nlp' %} + {% set main_class = 'nlp-color lighten' %} +{% elif job.service == 'ocr' %} + {% set main_class = 'ocr-color lighten' %} +{% endif %} {% block page_content %} + +{% if job.service == 'file-setup' %} + {{ Macros.insert_color_scheme(file_setup_color_darken) }} + {% set border_color = file_setup_color_darken %} +{% elif job.service == 'nlp' %} + {{ Macros.insert_color_scheme(nlp_color_darken) }} + {% set border_color = nlp_color_darken %} +{% elif job.service == 'ocr' %} + {{ Macros.insert_color_scheme(ocr_color_darken) }} + {% set border_color = ocr_color_darken %} +{% endif %} +