{% extends "./base.html" %}
{% load static %}

{% block title %}Curriculum Vitae of {{ identity.name }}{% endblock title %}

{% block meta %}
  {{ block.super }}
  <meta name="author" content="{{ identity.name }}">
  <meta name="description" content="{{ about.text }}">
{% endblock meta %}

{% block body %}
  {% if show_edit_button %}
    <body class="center" hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'>
  {% else %}
    <body class="center">
  {% endif %}
<header>
  <h1>
    <span class="with-edit-icon-big">
      {% if is_editable %}
        {% if not show_edit_button %}
          <a href="{{ edit_url }}">
            <svg class="edit-icon-big no-print">
              <use href="#edit"></use>
            </svg>
          </a>
        {% else %}
          <a href="{{ show_url }}">
            <svg class="edit-icon-big no-print">
              <use href="#show"></use>
            </svg>
          </a>
        {% endif %}
      {% endif %}
      Curriculum Vitae
    </span>
  </h1>
</header>
<main>
  {% include identity.templates.main %}
  {% include about.templates.main %}
  {% include freelance_timeline.templates.main with timeline=freelance_timeline page_break_before=False %}
  {% include employed_timeline.templates.main with timeline=employed_timeline page_break_before=True %}
  {% include education.templates.main %}
  {% include skills.templates.main %}
  {% include projects.templates.main with projects=projects %}
</main>
<footer class="no-print">
  <p>This is a footer!</p>
</footer>
{% if show_edit_button %}
  <script src="{% static "django_resume/js/edit.js" %}"></script>
{% endif %}
</body>
{% endblock body %}
