mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Set Job colors on Job result pages.
This commit is contained in:
parent
be50a0eb4b
commit
be8d688fdd
@ -1,10 +1,29 @@
|
||||
{% 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 %}
|
||||
|
||||
{% 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="card">
|
||||
<div class="card" style="border-top: 10px solid {{border_color}}">
|
||||
<div class="card-content">
|
||||
<div class="row">
|
||||
<div class="col s8 m9 l10">
|
||||
|
Loading…
Reference in New Issue
Block a user