summaryrefslogtreecommitdiffstats
path: root/templates/index.dokuwiki
blob: 6f1e1e8850a77e61dacabd63026b0d944c8b2629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% block content %}
====== Hostinfo ======

{% for host in hosts|sort(attribute='hostname') %}
{% set os = host['os'] | get_os_name %}
* {{ '{{' }}
  {%- if os is not none %}
  {{- host['os'] | get_os_name}}.png
  {%- else %}
unknown.png
  {%- endif %}?20x20
  {{- '}}' }} {{ host['hostname'] | replace(".spline.inf.fu-berlin.de","")}}
{% if host['description'] is defined %}
  * **description:**{{host['description'] | replace("\n"," ")}}
{% else %}
  * no description yet
{% endif %}
  * **adresses:**
{% for ip in host['addresses'] | select_with_attribute('vserver', False) | sort(attribute='address') %}
    * {{ip['address']}}
{% endfor %}
{% endfor %}
{% endblock %}