{% if object %}
<h2>{{object.title}}</h2>
{% if object.description %}
<p>{{object.description}}</p>
{% endif %}
{% if object.children %}
{% for resourceCollection in object.children %}
<h3>{{resourceCollection.title}}</h3>
{% if resourceCollection.resource_item %}
<table class="table table-striped table-sm w-100 filelist">
<thead>
<tr>
<th scope="col" style="width:30%;word-wrap: break-word;">
Name
</th>
<th scope="col" style="width:30%;word-wrap: break-word;">
Description
</th>
<th scope="col" style="width:15%;word-wrap: break-word;">
Version
</th>
<th scope="col" style="width:15%;word-wrap: break-word;">
Download
</th>
</tr>
</thead>
<tbody>
{% for item in resourceCollection.resource_item %}
<tr>
<td style="width:30%;word-wrap: break-word;">
{{ item.title }}<br>
</td>
<td style="width:40%;word-wrap: break-word;">
<span style="font-weight: bold; font-size:10px">{{ item.key }}</span><br>
{{ item.description }}
</td>
<td style="width:15%;word-wrap: break-word;">
{{ item.version }}
</td>
<td style="width:15%;word-wrap: break-word;">
{% if item.files %}
{% for file in item.files %}
<a href="{{ file.path }}{{ file.filename }}">.{{ file.filename|split('.')|last }} {% for md in file.metadata %}
{% if md.name == 'note' %}
({{ md.data }})
{% endif %}
{% endfor %}</a><br>
{% if file.metadata is defined %}
{% endif %}
{% endfor %}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endfor %}
{% endif %}
{% endif %}