{# This tells Sphinx to extend the original theme's footer.html #}
{% extends "!footer.html" %}

{% block contentinfo %}
<!--
  ~ Copyright 2025 European Union
  ~ Author: Bulgheroni Antonio (antonio.bulgheroni@ec.europa.eu)
  ~ SPDX-License-Identifier: EUPL-1.2
  -->

<div role="contentinfo">
    <p>
    {%- if show_copyright %}
      {%- if hasdoc('copyright') %}
        {%- trans path=pathto('copyright'), copyright=copyright|e %}&#169; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
      {%- else %}
        {%- trans copyright=copyright|e %}&#169; Copyright {{ copyright }}.{% endtrans %}
      {%- endif %}
    {%- endif %}
    {# 🌟 YOUR CUSTOM AUTHOR CODE GOES HERE 🌟 #}
    {# if author #}
      <span class="author-info">
        {# Add a separator (like the middle dot) and then the author name #}
        &middot; Authored by <a href="mailto:{{ author_mail }}">{{ author }}</a>.
      </span>
    {# endif #}
    {# 🌟 END CUSTOM AUTHOR CODE 🌟 #}

    {%- if build_id and build_url %}
      <span class="build">
        {#- Translators: Build is a noun, not a verb -#}
        {%- trans %}Build{% endtrans -%}
        <a href="{{ build_url }}">{{ build_id }}</a>.
      </span>
    {%- elif commit %}
      <span class="commit">
        {#- Translators: the phrase "revision" comes from Git, referring to a commit #}
        {%- trans %}Revision{% endtrans %} <code>{{ commit }}</code>.
      </span>
    {%- endif %}
    {%- if last_updated %}
      <span class="lastupdated">
        {%- trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
      </span>
    {%- endif -%}

    </p>
</div>
{% endblock %}