Fix color setup on job page

This commit is contained in:
Patrick Jentsch 2020-10-30 10:35:29 +01:00
parent 18ba922ce9
commit 5010b94925

View File

@ -1,18 +1,18 @@
{% extends "nopaque.html.j2" %} {% extends "nopaque.html.j2" %}
{% from '_constants.html.j2' import COLORS %} {% from '_colors.html.j2' import colors %}
{% if job.service == 'file-setup' %} {% 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 main_class = 'file-setup-color lighten' %}
{% set scheme_color = COLORS.file_setup_darken %} {% set scheme_color = colors.file_setup_darken %}
{% elif job.service == 'nlp' %} {% elif job.service == 'nlp' %}
{% set border_color = COLORS.nlp_darken %} {% set border_color = colors.nlp_darken %}
{% set main_class = 'nlp-color lighten' %} {% set main_class = 'nlp-color lighten' %}
{% set scheme_color = COLORS.nlp_darken %} {% set scheme_color = colors.nlp_darken %}
{% elif job.service == 'ocr' %} {% elif job.service == 'ocr' %}
{% set border_color = COLORS.ocr_darken %} {% set border_color = colors.ocr_darken %}
{% set main_class = 'ocr-color lighten' %} {% set main_class = 'ocr-color lighten' %}
{% set scheme_color = COLORS.ocr_darken %} {% set scheme_color = colors.ocr_darken %}
{% endif %} {% endif %}
{% block main_attribs %} class="{{ main_class }}"{% endblock main_attribs %} {% block main_attribs %} class="{{ main_class }}"{% endblock main_attribs %}