ansible.l3d.space/templates/frontpage.html

158 lines
5.1 KiB
HTML
Raw Normal View History

2023-02-01 00:42:18 +01:00
{% extends "layout.html" %}
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
{{ this.body }}
2023-03-22 00:52:49 +01:00
{% if this.collections is defined %}
{% if this.collections.blocks | length != 0 %}
<a href="#collections">Ansible Collections</a>
2023-04-15 23:18:17 +02:00
{% if this.roles is defined %}
{% if this.roles.blocks | length != 0 %}
|
{% endif %}
{% endif %}
2023-03-22 00:52:49 +01:00
{% endif %}
{% endif %}
2023-03-13 00:08:45 +01:00
{% if this.roles is defined %}
{% if this.roles.blocks | length != 0 %}
<a href="#roles">Ansible Roles</a>
{% endif %}
{% endif %}
2023-03-22 00:52:49 +01:00
{% if this.collections is defined %}
{% if this.collections.blocks | length != 0 %}
2023-04-15 23:18:17 +02:00
<h2 id="collections">{{ this.tablecollectionstitle }}</h2>
2023-03-22 00:52:49 +01:00
<table>
<thead>
<tr>
<th>Collection Name</th>
<td>
<ul>
<li>Github</li>
<li>Gitea</li>
</ul>
</td>
<td>
<ul>Roles</ul>
</td>
<td>
<ul>
<li>Ansible Collection</li>
<li>Maintainance Status</li>
<li>License</li>
</ul>
</td>
</tr>
</thead>
<tbody>
{% for blk in this.collections.blocks -%}
<tr id="{{ blk.galaxy_name }}">
<th><a href="{{ blk.gitrepo }}" target="_blank">{{ blk.name }}</a></th>
<td>
<code>
<ul>
<li>
<a href="{{ blk.gitrepo }}" target="_blank" titel="Github Link">{{ blk.gitrepo }}</a>
</li>
<li>
<a href="{{ blk.gitearepo }}" target="_blank">{{ blk.gitearepo }}</a>
</li>
</ul>
</code>
</td>
2023-04-15 23:18:17 +02:00
<td>
{% for rle in blk.roles.blocks -%}
<ul>
<li>
<a href="#{{ rle.role_name }}" alt="{{ rle.name }}">
<img src="{{ {'name': rle.galaxy_name, 'state': rle.galaxy_name, 'label': 'ansible-role', suffix: 'collection_role'} | svg }}" />
</a>
</li>
</ul>
{% endfor %}
</td>
2023-03-22 00:52:49 +01:00
<td>
<ul>
<li>
{% if blk.no_galaxy %}
<a href="{{ blk.galaxy_url }}">
2023-04-15 23:18:17 +02:00
<img src="{{ {'name': blk.galaxy_name, 'state': blk.galaxy_name, 'label': 'ansible-collection', 'color': '#5eba5e', 'suffix': 'collection'} | svg }}" />
2023-03-22 00:52:49 +01:00
</a>
{% else %}-{% endif %}
</li>
<li>
2023-04-20 22:52:31 +02:00
<img src="{{ {'name': blk.galaxy_name, 'state': blk.maintainance, 'label': 'maintainance', 'suffix': 'collection'} | svg }}" />
2023-03-22 00:52:49 +01:00
</li>
<li>
2023-04-20 22:52:31 +02:00
<img src="{{ {'name': blk.galaxy_name, 'state': blk.license, 'label': 'license', 'suffix': 'collection'} | svg }}" />
2023-03-22 00:52:49 +01:00
</li>
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endif %}
2023-03-12 04:07:08 +01:00
{% if this.roles is defined %}
{% if this.roles.blocks | length != 0 %}
<h2 id="roles">{{ this.tabletitle }}</h2>
2023-03-04 05:17:37 +01:00
<table>
<thead>
<tr>
2023-03-08 02:30:13 +01:00
<th>Role Name</th>
2023-03-13 00:08:45 +01:00
<td>
<ul>
<li>Github</li>
<li>Gitea</li>
</ul>
</td>
<td>
<ul>
<li>Ansible Galaxy</li>
<li>Maintainance Status</li>
<li>License</li>
</ul>
</td>
2023-03-04 05:17:37 +01:00
</tr>
</thead>
<tbody>
2023-03-12 04:07:08 +01:00
{% for blk in this.roles.blocks -%}
2023-03-22 00:52:49 +01:00
<tr id="{{ blk.galaxy_name }}">
2023-03-08 02:30:13 +01:00
<th><a href="{{ blk.gitrepo }}" target="_blank">{{ blk.name }}</a></th>
2023-03-04 05:17:37 +01:00
<td>
2023-03-13 00:08:45 +01:00
<code>
<ul>
<li>
<a href="{{ blk.gitrepo }}" target="_blank" titel="Github Link">{{ blk.gitrepo }}</a>
</li>
<li>
<a href="{{ blk.gitearepo }}" target="_blank">{{ blk.gitearepo }}</a>
</li>
</ul>
</code>
2023-03-08 02:30:13 +01:00
</td>
<td>
2023-03-13 00:08:45 +01:00
<ul>
<li>
{% if blk.no_galaxy %}
<a href="{{ blk.galaxy_url }}">
<img src="{{ {'name': blk.galaxy_name, 'state': blk.galaxy_name, 'label': 'ansible-galaxy'} | svg }}" />
</a>
{% else %}-{% endif %}
</li>
<li>
<img src="{{ {'name': blk.galaxy_name, 'state': blk.maintainance, 'label': 'maintainance'} | svg }}" />
</li>
<li>
<img src="{{ {'name': blk.galaxy_name, 'state': blk.license, 'label': 'license'} | svg }}" />
</li>
</ul>
2023-03-04 05:17:37 +01:00
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endif %}
2023-03-10 00:03:52 +01:00
{{ this.trailer }}
2023-02-01 00:42:18 +01:00
{% endblock %}