From: Michael Tremer Date: Wed, 19 Oct 2022 01:34:47 +0000 (+0000) Subject: web: Refactor jobs list X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88475e11882764dad7d43bb1a063555a62e415f8;p=pbs.git web: Refactor jobs list Signed-off-by: Michael Tremer --- diff --git a/src/templates/index.html b/src/templates/index.html index 08479987..94f080c8 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -16,7 +16,7 @@ {% if jobs %}
-
{{ _("Current Jobs") }}
+

{{ _("Running Jobs") }}

{% module JobsList(jobs) %}
diff --git a/src/templates/modules/jobs/list.html b/src/templates/modules/jobs/list.html index 457ea9a0..b5db2094 100644 --- a/src/templates/modules/jobs/list.html +++ b/src/templates/modules/jobs/list.html @@ -1,61 +1,61 @@ {% for job in jobs %} -
-
-
-
- {% if show_arch_only %} - {{ job.arch }} - {% else %} - {{ job }} - {% end %} -
- - {% if job.has_failed() %} - {{ _("Failed") }} - {% end %} + {% set build = job.build %} - {# Show all packages that have been built #} - {% if show_packages and job.packages %} - - {% end %} -
+
-
- {% elif job.has_finished() %} - - {% end %} - - {% if job.build.owner %} -
  • - {{ _("by %s") % job.build.owner }} -
  • - {% end %} - - {% if job.builder %} -
  • - - {{ _("on %s") % job.builder }} - -
  • +
    {% end %}
    + + {# Show all packages that have been built #} + {% if show_packages and job.packages %} +
    + +
    + {% end %} {% end %}