mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Fix color setup on job page
This commit is contained in:
parent
18ba922ce9
commit
5010b94925
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user