Set Job colors on Job result pages.

This commit is contained in:
Stephan Porada 2020-09-21 10:36:04 +02:00
parent be50a0eb4b
commit be8d688fdd

View File

@ -1,10 +1,29 @@
{% extends "nopaque.html.j2" %} {% extends "nopaque.html.j2" %}
{% set headline = '<i class="left material-icons service" data-service="{service}" style="font-size: inherit;"></i>Job view'.format(service=job.service) %} {% set headline = '<i class="left material-icons service" data-service="{service}" style="font-size: inherit;"></i>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 %} {% 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 %}
<div class="col s12"> <div class="col s12">
<div class="card"> <div class="card" style="border-top: 10px solid {{border_color}}">
<div class="card-content"> <div class="card-content">
<div class="row"> <div class="row">
<div class="col s8 m9 l10"> <div class="col s8 m9 l10">