Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nopaque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
be8d688f
Commit
be8d688f
authored
4 years ago
by
Stephan Porada
Browse files
Options
Downloads
Patches
Plain Diff
Set Job colors on Job result pages.
parent
be50a0eb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
web/app/templates/jobs/job.html.j2
+21
-2
21 additions, 2 deletions
web/app/templates/jobs/job.html.j2
with
21 additions
and
2 deletions
web/app/templates/jobs/job.html.j2
+
21
−
2
View file @
be8d688f
{% 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">
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment