{% from 'macros/upload.html' import upload_collapsible %}
<div id="dataset-uploads-panel" class="uploads-table panel">
    {% if uploads | length == 0 %}
    <span>No uploads for this dataset or dataset part</span>
    {% else %}
    <table>
        {% for upload in uploads if upload.visible_to(current_account) %}
        {{ upload_collapsible(upload, config=config) }}
        {% endfor %}
    </table>
    {% endif %}
</div>