From 5010b94925b4ad7644cb3e303444f8896bdf0276 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Fri, 30 Oct 2020 10:35:29 +0100
Subject: [PATCH] Fix color setup on job page
---
web/app/templates/jobs/job.html.j2 | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
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 %}