This repository has been archived by the owner on Oct 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmaturity_table.html.j2
45 lines (44 loc) · 1.57 KB
/
maturity_table.html.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<h3>Active roles</h3>
<table class="table table-bordered">
<tr>
<th>Role name</th>
<th>Created during cycle</th>
<th>Maturity level</th>
<th>Included into openstack-ansible by default</th>
<th>Supports Ubuntu</th>
<th>Supports CentOS</th>
<th>Supports OpenSUSE</th>
</tr>
{%- for role in roles | rejectattr('maturity_level','equalto', 'retired') %}
<tr {% if role.maturity_level | lower == 'incubated' -%}
class="warning"
{%- elif role.maturity_level | lower == 'unmaintained' -%}
class="danger"
{%- elif role.maturity_level | lower == 'unknown' -%}
class="info"
{%- endif -%}>
<td>{{ role.name }}</td>
<td>{{ role.created_during | capitalize }}</td>
<td>{{ role.maturity_level | capitalize }}</td>
<td>{% if role.in_arr %}✔{% else %}✘{% endif %}</td>
<td>{% if role.ubuntu %}✔{% else %}✘{% endif %}</td>
<td>{% if role.centos %}✔{% else %}✘{% endif %}</td>
<td>{% if role.opensuse %}✔{% else %}✘{% endif %}</td>
</tr>
{%- endfor -%}
</table>
<h3>Retired roles</h3>
<table class="table table-bordered">
<tr>
<th>Role name</th>
<th>Created during cycle</th>
<th>Retired during cycle</th>
</tr>
<tr>
{%- for role in roles | selectattr('maturity_level','equalto', 'retired') %}
<td>{{ role.name }}</td>
<td>{{ role.created_during | capitalize }}</td>
<td>{{ role.retired_during | capitalize }}</td>
</tr>
{%- endfor -%}
</table>