create Templates

This commit is contained in:
L3D 2023-03-22 00:52:49 +01:00
parent ab2bd2bd12
commit 6e24e5f91f
Signed by: l3d
GPG key ID: CD08445BFF4313D1
6 changed files with 153 additions and 4 deletions

View file

@ -302,3 +302,24 @@ trailer:
I have all my roles on [github.com/roles-ansible/](https://github.com/roles-ansible/) and welcome any pull requests, questions and comments there. If you want to get away from Microsoft for a good reason, have a look at [backwesen.de/ansible/](https://backwesen.de/ansible/). As soon as Federation for Forgejo and Gitea is implemented, there will be a chance to interact about it. I have all my roles on [github.com/roles-ansible/](https://github.com/roles-ansible/) and welcome any pull requests, questions and comments there. If you want to get away from Microsoft for a good reason, have a look at [backwesen.de/ansible/](https://backwesen.de/ansible/). As soon as Federation for Forgejo and Gitea is implemented, there will be a chance to interact about it.
If you like ansible and open source and are thinking about supporting one or more ansible roles or github workflows yourself, please feel free to drop me a line. If you like ansible and open source and are thinking about supporting one or more ansible roles or github workflows yourself, please feel free to drop me a line.
---
tablecollectionstitle: List of my ansible collections
---
collections:
#### collections ####
name: Ansible Git Server Collection
----
gitrepo:
----
gitearepo:
----
no_galaxy: true
----
galaxy_name: l3d.git
----
galaxy_url:
----
maintainance: false
----
license: MIT

View file

@ -0,0 +1,50 @@
[block]
name = Add Ansible Collection
button_label = Add Ansible Collection
[fields.name]
label = Ansible Collection Name
type = string
[fields.gitrepo]
label = Github Repo
type = url
width = 1/2
[fields.gitearepo]
label = Gitea Repo
type = url
width = 1/2
[fields.no_galaxy]
label = Role has Galaxy
type = boolean
checkbox_label = Uncheck if role is not at galaxy
default = true
width = 1/8
[fields.galaxy_name]
label = Ansible Galaxy Name
description = And Icons file Name
type = string
width = 3/8
default = l3d.collection
[fields.galaxy_url]
label = Ansible Galaxy Address
type = url
width = 1/2
[fields.maintainance]
label = Maintainance Status
type = select
choices = well,true,poor,false
default = false
width = 1/2
[fields.license]
label = Maintainance Status
type = select
choices = MIT,GPLv3,BSD 3-Clause,CC-BY-4.0,CC-BY-SA-4.0,Apache-2,proprietary
default = MIT
width = 1/2

View file

@ -28,7 +28,7 @@ label = Ansible Galaxy Name
description = And Icons file Name description = And Icons file Name
type = string type = string
width = 3/8 width = 3/8
default = do1jlr.template default = l3d.template
[fields.galaxy_url] [fields.galaxy_url]
label = Ansible Galaxy Address label = Ansible Galaxy Address

View file

@ -12,8 +12,17 @@ type = string
label = Introduction label = Introduction
type = markdown type = markdown
[fields.tablecollectionstitle]
label = Table Collections Title
type = string
[fields.collections]
label = Our Ansible Collections
type = flow
flow_blocks = collections
[fields.tabletitle] [fields.tabletitle]
label = Table Title label = Table Roles Title
type = string type = string
[fields.roles] [fields.roles]

@ -1 +1 @@
Subproject commit fe489cdea6ee621affd51888a0192fe9c28f84ab Subproject commit 36444bf833881ea916e586b3fdf5cade11f51142

View file

@ -2,11 +2,80 @@
{% block title %}{{ this.title }}{% endblock %} {% block title %}{{ this.title }}{% endblock %}
{% block body %} {% block body %}
{{ this.body }} {{ this.body }}
{% if this.collections is defined %}
{% if this.collections.blocks | length != 0 %}
<a href="#collections">Ansible Collections</a>
{% endif %}
{% endif %}
{% if this.roles is defined %} {% if this.roles is defined %}
{% if this.roles.blocks | length != 0 %} {% if this.roles.blocks | length != 0 %}
<a href="#roles">Ansible Roles</a> <a href="#roles">Ansible Roles</a>
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if this.collections is defined %}
{% if this.collections.blocks | length != 0 %}
<h2 id="roles">{{ this.tablecollectionstitle }}</h2>
<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>
<td>
<ul>
<li>
{% if blk.no_galaxy %}
<a href="{{ blk.galaxy_url }}">
<img src="{{ {'name': blk.galaxy_name, 'state': blk.galaxy_name, 'label': 'ansible-galaxy', 'color': '#5eba5e', 'suffix': 'collection'} | 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>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endif %}
{% if this.roles is defined %} {% if this.roles is defined %}
{% if this.roles.blocks | length != 0 %} {% if this.roles.blocks | length != 0 %}
<h2 id="roles">{{ this.tabletitle }}</h2> <h2 id="roles">{{ this.tabletitle }}</h2>
@ -31,7 +100,7 @@
</thead> </thead>
<tbody> <tbody>
{% for blk in this.roles.blocks -%} {% for blk in this.roles.blocks -%}
<tr> <tr id="{{ blk.galaxy_name }}">
<th><a href="{{ blk.gitrepo }}" target="_blank">{{ blk.name }}</a></th> <th><a href="{{ blk.gitrepo }}" target="_blank">{{ blk.name }}</a></th>
<td> <td>
<code> <code>