diff --git a/web/app/templates/jobs/job.html.j2 b/web/app/templates/jobs/job.html.j2 index 4deeff38..7cbc49ba 100644 --- a/web/app/templates/jobs/job.html.j2 +++ b/web/app/templates/jobs/job.html.j2 @@ -1,18 +1,18 @@ {% extends "nopaque.html.j2" %} -{% from '_constants.html.j2' import COLORS %} +{% from '_colors.html.j2' import colors %} {% if job.service == 'file-setup' %} - {% set border_color = COLORS.file_setup_darken %} + {% set border_color = colors.file_setup_darken %} {% set main_class = 'file-setup-color lighten' %} - {% set scheme_color = COLORS.file_setup_darken %} + {% set scheme_color = colors.file_setup_darken %} {% elif job.service == 'nlp' %} - {% set border_color = COLORS.nlp_darken %} + {% set border_color = colors.nlp_darken %} {% set main_class = 'nlp-color lighten' %} - {% set scheme_color = COLORS.nlp_darken %} + {% set scheme_color = colors.nlp_darken %} {% elif job.service == 'ocr' %} - {% set border_color = COLORS.ocr_darken %} + {% set border_color = colors.ocr_darken %} {% set main_class = 'ocr-color lighten' %} - {% set scheme_color = COLORS.ocr_darken %} + {% set scheme_color = colors.ocr_darken %} {% endif %} {% block main_attribs %} class="{{ main_class }}"{% endblock main_attribs %}