{% extends base_template %}
{% block content %}
    <p>
        A Collection is a set of artifacts or other collections that are intended to be used together.
        See <a href="https://freexian-team.pages.debian.net/debusine/explanation/concepts.html#collections">Collections documentation</a>
        for more details.
    </p>
    <p>
        This is a list of <i>{{ category }}</i> collections you can access from the <a href="{{ workspace.get_absolute_url }}">{{ workspace.name }}</a> workspace:
    </p>
    {% if collection_list %}
        <table class="table table-hover table-striped" id="collection-list-table">
            <thead>
                <tr>
                    <th>Name</th>
                </tr>
            </thead>
            <tbody>
                {% for collection in collection_list %}
                    <tr>
                        <td>
                            <a href="{{ collection.get_absolute_url }}">{{ collection.name }}</a>
                        </td>
                    </tr>
                {% endfor %}
            </tbody>
        </table>
    {% else %}
        <p>No collections.</p>
    {% endif %}
{% endblock %}
