{% load static %}
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>{% block title %}Educa{% endblock %}</title>
    <link href="{% static "css/base.css" %}" rel="stylesheet">
  </head>
  <body>
    <div id="header">
      <a href="/" class="logo">Educa</a>
      <ul class="menu">
        {% if request.user.is_authenticated %}
          <li><a href="{% url "logout" %}">Wyloguj</a></li>
        {% else %}
          <li><a href="{% url "login" %}">Zaloguj</a></li>
        {% endif %}
      </ul>
    </div>
    <div id="content">
      {% block content %}
      {% endblock %}
    </div>     
    <script>
        document.addEventListener('DOMContentLoaded', (event) => {
        // Model DOM załadowany
        {% block domready %}
        {% endblock %}
      })
    </script>
  </body>
</html>
