{% extends 'mainlayout.html' %}

{% block scripts %}
  <script src="{{ url_for('static', filename='src/displayheaders.js') }}" defer>
  </script>
{% endblock %}

{% block content %}
  <section class="section container">

    {% include '_folders.html' %}

    {% if loginmessage is defined %}
      <p id=loginmessage>
        {{ loginmessage }}
      </p>
    {% endif %}

    {% include '_top_nav.html' %}

    {% if msgs %}
      {% include '_main_table.html' %}
    {% else %}
      <p class="section">
        {% trans %}This folder is empty!{% endtrans %}
      </p>
    {% endif %}

    {% include '_bot_nav.html' %}

  </section>
{% endblock %}