Skip to content

Commit 8129e24

Browse files
committed
ui: show queue size in revision-landing page
1 parent c7fd94e commit 8129e24

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/lando/ui/jinja2/jobs/job.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h1>{{ job_type }} Job {{ job.id }}</h1>
1111
{% if queue %}
1212
<h1>{{ job_type }} Queue</h1>
1313
{% if queue|length > 1 %}
14-
<p>There are {{ queue|length }} jobs ahead in the queue.</p>
14+
<p>There are {{ queue|length }} jobs in the queue.</p>
1515
{% else %}
1616
<p>There is 1 job ahead in the queue.</p>
1717
{% endif %}

src/lando/ui/jinja2/partials/job.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
{% if embedded %}
1212
<p>
1313
<strong>Landing Job:</strong>
14-
<a href="{{ url('jobs-page', args=[job.id]) }}">{{ job.id }}</a>
14+
<a href="{{ url('jobs-page', args=[job.id]) }}">{{ job.id }}
15+
{% if queue and queue|length > 1 %}
16+
({{ queue|length }} jobs in the queue)
17+
{% endif %}
18+
</a>
1519
</p>
1620
{% elif has_revisions and job.is_pull_request_job %}
1721
{% set top_revision = job.revisions[0] %}

0 commit comments

Comments
 (0)