From: Jonatan Schlag Date: Mon, 6 Nov 2017 09:31:43 +0000 (+0100) Subject: bootstrap 4: make jobs-table responsive X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8452bb5171d89eca131e06ec97ed91afd4c62bfd;p=pbs.git bootstrap 4: make jobs-table responsive Signed-off-by: Jonatan Schlag --- diff --git a/src/templates/modules/jobs-table.html b/src/templates/modules/jobs-table.html index 7170e5fc..5b5069a2 100644 --- a/src/templates/modules/jobs-table.html +++ b/src/templates/modules/jobs-table.html @@ -1,66 +1,72 @@ - - - - - - - - - - - {% if jobs %} - {% for job in jobs %} - - - - - - - {% end %} + +
+
{{ _("Arch") }}{{ _("State") }}{{ _("Host") }}{{ _("Duration") }}
- {{ job.arch }} - - {% if job.state == "pending" %} - {{ _("Pending") }} - {% elif job.state == "failed" %} - {{ _("Failed") }} - {% elif job.state == "dispatching" %} - {{ _("Dispatching") }} - {% elif job.state == "finished" %} - {{ _("Finished") }} - {% elif job.state == "running" %} - {{ _("Running") }} - {% elif job.state == "aborted" %} - {{ _("Aborted") }} - {% else %} - {{ job.state }} - {% end %} - - {% if job.builder %} - {{ job.builder.name }} - {% else %} - {{ _("N/A") }} - {% end %} - - {% if job.state == "running" %} - {{ _("Running since %s") % friendly_time(job.duration) }} - {% elif job.duration %} - {{ friendly_time(job.duration) }} - {% else %} - {{ _("Not finished, yet.") }} - {% end %} -
+ + + + + + + + + + {% if jobs %} + {% for job in jobs %} + + + + + + + {% end %} - {% if not build.supported_arches == "all" %} + {% if not build.supported_arches == "all" %} + + + + {% end %} + {% else %} - + {% end %} - {% else %} - - - - {% end %} - -
{{ _("Arch") }}{{ _("State") }}{{ _("Host") }}{{ _("Duration") }}
+ {{ job.arch }} + + {% if job.state == "pending" %} + {{ _("Pending") }} + {% elif job.state == "failed" %} + {{ _("Failed") }} + {% elif job.state == "dispatching" %} + {{ _("Dispatching") }} + {% elif job.state == "finished" %} + {{ _("Finished") }} + {% elif job.state == "running" %} + {{ _("Running") }} + {% elif job.state == "aborted" %} + {{ _("Aborted") }} + {% else %} + {{ job.state }} + {% end %} + + {% if job.builder %} + {{ job.builder.name }} + {% else %} + {{ _("N/A") }} + {% end %} + + {% if job.state == "running" %} + {{ _("Running since %s") % friendly_time(job.duration) }} + {% elif job.duration %} + {{ friendly_time(job.duration) }} + {% else %} + {{ _("Not finished, yet.") }} + {% end %} +
+ {{ _("This package only supports %s.") % locale.list(build.supported_arches.split()) }} +
- {{ _("This package only supports %s.") % locale.list(build.supported_arches.split()) }} - {{ _("No jobs, yet.") }}
{{ _("No jobs, yet.") }}
+ + +