summaryrefslogtreecommitdiffstats
path: root/templates/index.dokuwiki
diff options
context:
space:
mode:
authoryves <steve.harrison@gmx.net>2013-08-15 12:01:23 +0200
committeryves <steve.harrison@gmx.net>2013-08-15 12:01:23 +0200
commit18d2e7074f053fb3ba5890795988b9f3b2769606 (patch)
tree584808f0a3e0b5364fbf56ab35481efda1e7fafc /templates/index.dokuwiki
parent9159492e38a46a36a861600427f0589f2c4ec180 (diff)
downloadwww-18d2e7074f053fb3ba5890795988b9f3b2769606.tar.gz
www-18d2e7074f053fb3ba5890795988b9f3b2769606.tar.bz2
www-18d2e7074f053fb3ba5890795988b9f3b2769606.zip
add rendering for dokuwiki
Diffstat (limited to 'templates/index.dokuwiki')
-rw-r--r--templates/index.dokuwiki23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/index.dokuwiki b/templates/index.dokuwiki
new file mode 100644
index 0000000..6f1e1e8
--- /dev/null
+++ b/templates/index.dokuwiki
@@ -0,0 +1,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 %}