From: Michael Tremer Date: Tue, 11 Feb 2025 17:38:29 +0000 (+0000) Subject: jobs: Use level for the queue X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5684e72c135e5cca1ec864512fe71125d5943fc4;p=pbs.git jobs: Use level for the queue This works on mobile without breaking the layout. Signed-off-by: Michael Tremer --- diff --git a/src/templates/jobs/macros.html b/src/templates/jobs/macros.html index 8e897497..935b9c68 100644 --- a/src/templates/jobs/macros.html +++ b/src/templates/jobs/macros.html @@ -185,37 +185,49 @@ {% for job in jobs %} - - {% if job.is_running() %} - - - - {% elif job.is_queued() %} - - - - {% elif job.has_failed() %} - - - - {% elif job.is_aborted() %} - - - - {% elif job.has_finished() %} - - - - {% endif %} + + + + + {% if job.is_running() %} + + + + {% elif job.is_queued() %} + + + + {% elif job.has_failed() %} + + + + {% elif job.is_aborted() %} + + + + {% elif job.has_finished() %} + + + + {% endif %} - {{ job }} - + + {{ job }} + + + + - {% if job.has_finished() %} - - {{ job.duration | format_time }} + + {% if job.has_finished() %} + + + {{ job.duration | format_time }} + + + {% endif %} - {% endif %} + {# Show a message if there were no jobs #}