{% from 'macros/dataset.html' import dataset_collapsible %}
<div id="dataset-page" class="dataset-page">
  {% if items | length == 0 %}
  <p class="none-found">No Datasets found :)</p>
  {% else %}
  {% with swap_target="#dataset-page" %}
    {% include 'includes/pagination-buttons.html' %}
  {% endwith %}
  <div id="datasets-table-inner"
       class="collapsible-table datasets-table {% if review %}review{% endif %}">
    <div id="datasets-table-head" class="table-head">
      <span class="marker"></span>
      <span class="col-slug">
          slug
      </span>
      <span class="col-title">
          title
      </span>
      <span></span>
      <span class="col-created">
          created
      </span>
      {% if review %}<span></span><span></span>{% endif %}
    </div>
    <div class="dataset-items">
      {% for dataset in items %}
      {{ dataset_collapsible(dataset, review=review, config=config, types=types) }}
      {% endfor %}
    </div>
  </div>
  {% with swap_target="#dataset-page" %}
    {% include 'includes/pagination-buttons.html' %}
  {% endwith %}
  {% endif %}
</div>