doc_infra/template/debian.rst.j2
Michaël Ricart 97daf64816
All checks were successful
/ test (push) Successful in 19s
add datatable plugin
2025-02-17 13:57:20 +01:00

25 lines
969 B
Django/Jinja

{% include "base.rst.j2" %}
network
-------
ip
##
========= ==============
interface adresses
========= =============={% for interface in ip %}
{{ "{:<10}".format(interface["ifname"]) }} {% for ip in interface["addr_info"] %} {{ ip["local"] }}/{{ ip["prefixlen"]}}{% endfor %}
{% endfor %}========= ==============
services
--------
.. table:: services
:class: sphinx-datatable
================================================== ==================== ==============
service state description
================================================== ==================== =============={% for svc in services %}
{{ "{:<50}".format(svc["unit"][:49]) }} {{ "{:<20}".format(svc["sub"].replace("running",":green:`running`").replace("failed", ":red:`failed`")) }} {{ svc["description"] }}{% endfor %}
================================================== ==================== ==============