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

{% block title %}Resume 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 %}
{% if is_editable %}{% include "./edit_panel.html" %}{% endif %}
{% include cover.templates.flat %}
<main>
  {% if show_edit_button %}
    {% include theme.templates.main %}
  {% endif %}
  {% include cover.templates.main %}
</main>
<footer class="no-print">
  <div class="contact">
    <a class="underlined" href="mailto:{{ identity.email }}">
      <b>Interested? Let's talk!</b>
    </a>
  </div>
  {% if user.is_authenticated or not resume.token_is_required %}
    <div class="contact">
      <a class="underlined" href="{% url "django_resume:cv" slug=resume.slug %}">Link to CV!</a>
    </div>
  {% endif %}
</footer>
{% if show_edit_button %}
  <script src="{% static "django_resume/js/edit.js" %}"></script>
{% endif %}
{% endblock body %}