ui: add amount of tasks in the playbook card and table

We had this data but we didn't include it for some reason.
It's at least as much relevant as the other numbers displayed so include
it.

Change-Id: I9b95a2cbe2bbee5bba1392e2d7d4afd6eebc6d03
This commit is contained in:
David Moreau Simard 2020-10-14 22:15:46 -04:00
parent 4fdf71d277
commit d301f9462f
No known key found for this signature in database
GPG Key ID: 7D4729EC4E64E8B7
2 changed files with 9 additions and 0 deletions

View File

@ -106,6 +106,7 @@
<th role="columnheader" scope="col">Labels</th>
<th role="columnheader" scope="col" class="pf-m-fit-content">Hosts</th>
<th role="columnheader" scope="col" class="pf-m-fit-content">Plays</th>
<th role="columnheader" scope="col" class="pf-m-fit-content">Tasks</th>
<th role="columnheader" scope="col" class="pf-m-fit-content">Results</th>
<th role="columnheader" scope="col" class="pf-m-fit-content">Files</th>
<th role="columnheader" scope="col" class="pf-m-fit-content">Records</th>
@ -173,6 +174,9 @@
<td role="cell" data-label="Plays" class="pf-m-fit-content">
<a href="{% if page != "index" %}../{% endif %}playbooks/{{ playbook.id }}.html#plays">{{ playbook.items.plays }}</a>
</td>
<td role="cell" data-label="Tasks" class="pf-m-fit-content">
<a href="{% if page != "index" %}../{% endif %}playbooks/{{ playbook.id }}.html#results">{{ playbook.items.tasks }}</a>
</td>
<td role="cell" data-label="Results" class="pf-m-fit-content">
<a href="{% if page != "index" %}../{% endif %}playbooks/{{ playbook.id }}.html#results">{{ playbook.items.results }}</a>
</td>

View File

@ -53,6 +53,11 @@
<a href="{% if page != "index" %}../{% endif %}playbooks/{{ playbook.id }}.html#plays">{{ playbook.items.plays }} plays</a>
</div>
</div>
<div class="pf-c-data-list__cell pf-m-flex-1">
<div style="padding-top:1em;">
<a href="{% if page != "index" %}../{% endif %}playbooks/{{ playbook.id }}.html#results">{{ playbook.items.tasks }} Tasks</a>
</div>
</div>
<div class="pf-c-data-list__cell pf-m-flex-1">
<div style="padding-top:1em;">
<a href="{% if page != "index" %}../{% endif %}playbooks/{{ playbook.id }}.html#results">{{ playbook.items.results }} results</a>