Skip to content
Snippets Groups Projects
inventory.xml 776 B
Newer Older
Lukas Ruge's avatar
Lukas Ruge committed
---
layout: null
permalink: /nobreakspace/inventory
---
<?xml version="1.0" encoding="UTF-8"?>
<inventoy>
{%- for device in site.inventory -%}
	<device>
		<name>{{device.name}}</name>
		<uid>{{device.uid}}</uid>
Lukas Ruge's avatar
Lukas Ruge committed
		{% if device.safetybriefing -%}
			<safetybriefing>true</safetybriefing>
		{% else %}
			<safetybriefing>false</safetybriefing>		
		{% endif -%}
Lukas Ruge's avatar
Lukas Ruge committed
		<wikilink>{{device.wikilink}}</wikilink>
		<sets>
			{%- for set in device.sets -%}
				<set>{{set}}</set>
			{%- endfor -%}
		</sets>
Lukas Ruge's avatar
Lukas Ruge committed
		<contacts>
			{%- for contact in device.contact -%}
				{% for person in site.people -%}
					{% if contact == person.person_id %}
						<contact>{{contact.name}}</contact>
					{% endif -%}	
				{% endfor -%}
			{% endfor -%}
		</contacts>
Lukas Ruge's avatar
Lukas Ruge committed
	</device>
{%- endfor -%}
</inventoy>