diff --git a/web/app/templates/jobs/job.html.j2 b/web/app/templates/jobs/job.html.j2 index 70cf4736..20fda0f3 100644 --- a/web/app/templates/jobs/job.html.j2 +++ b/web/app/templates/jobs/job.html.j2 @@ -1,168 +1,171 @@ {% extends "nopaque.html.j2" %} - -{% set headline = 'Job ({service}) - {title}'.format(service=job.service, title=job.title) %} +{% from '_constants.html.j2' import COLORS %} {% if job.service == 'file-setup' %} + {% set border_color = COLORS.file_setup_darken %} {% set main_class = 'file-setup-color lighten' %} + {% set scheme_color = COLORS.file_setup_darken %} {% elif job.service == 'nlp' %} + {% set border_color = COLORS.nlp_darken %} {% set main_class = 'nlp-color lighten' %} + {% set scheme_color = COLORS.nlp_darken %} {% elif job.service == 'ocr' %} + {% set border_color = COLORS.ocr_darken %} {% set main_class = 'ocr-color lighten' %} + {% set scheme_color = COLORS.ocr_darken %} {% endif %} + +{% block main_attribs %} class="{{ main_class }}"{% endblock main_attribs %} + {% block page_content %} +
+
+
+

Job ({{ job.service }}) - {{ job.title }}

+
-{% 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 %} +
+
+
+
+
+ {{ job.title }} +
-
-
-
-
-
- {{ job.title }} -
- -
- -
-
-
-
+
+ +
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+ +
+

{{ job.description }}

+
+ +
 
+ +
+
+ +
-
-
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+
+ +
- -
-

{{ job.description }}

+
+ {% if current_user.is_administrator() and job.status == 'failed' %} + repeatRestart + {% endif %} + + deleteDelete
+
+
-
 
- -
-
- - -
-
- -
-
- - -
-
- -
-
- - -
-
- -
-
- - -
-
- -
-
- - +
+
+
+
+
+ inputInputs +

Original input files.

+
+
+
    + + + + + + + + + +
    Filename{# Actions #}
    +
      +
      -
      - {% if current_user.is_administrator() and job.status == 'failed' %} - repeatRestart - {% endif %} - - deleteDelete -
      -
      -
      -
      -
      -
      -
      -
      - inputInputs -

      Original input files.

      -
      -
      -
        - - - - - - - - - -
        Filename{# Actions #}
        -
          +
          +
          +
          +
          +
          + doneResults +

          Processed result files.

          +
          +
          + + + + + + + + + + + + + +
          Result TypeArchive Name{# Actions #}
          + + file_downloadNothing here... + +

          + No results available (yet). Is the job already completed? +

          +
          +
          +
          -
          -
          -
          -
          -
          - doneResults -

          Processed result files.

          -
          -
          - - - - - - - - - - - - - -
          Result TypeArchive Name{# Actions #}
          - - file_downloadNothing here... - -

          - No results available (yet). Is the job already completed? -

          -
          -
          -
          -
          -
          -
          - - +{% endblock page_content %} - +{% block scripts %} +{{ super() }} -{% endblock %} +{% endblock scripts %}