{% comment %}
Copyright (C) 2023-2024  The Software Heritage developers
See the AUTHORS file at the top-level directory of this distribution
License: GNU Affero General Public License version 3, or any later version
See top-level LICENSE file for more information
{% endcomment %}

<footer class="app-footer">
  <div class="text-center">
    <p>
      {% if not SWH_MIRROR_CONFIG %}
        <a href="https://www.softwareheritage.org">Software Heritage</a> &mdash;
        Copyright (C) 2015&ndash;{% now "Y" %}, The Software Heritage developers.
        License: <a href="https://www.gnu.org/licenses/agpl.html">GNU
        AGPLv3+</a>.
        <br />
        The source code of Software Heritage <em>itself</em>
        is available on
        our <a href="https://gitlab.softwareheritage.org">development
        forge</a>.
        <br />
        The source code files <em>archived</em> by Software
        Heritage are available under their own copyright and licenses.
        <br />
        <span>Terms of use:</span>
        <a href="https://www.softwareheritage.org/legal/bulk-access-terms-of-use/">Archive access</a>,
        <a href="https://www.softwareheritage.org/legal/api-terms-of-use/">API</a>&mdash;
        {% if "swh.web.alter" in SWH_DJANGO_APPS %}
          <a href="{% url 'content-policies' %}"
             data-testid="swh-web-alter-content-policy">Content policy</a>&mdash;
        {% endif %}
        <a href="https://www.softwareheritage.org/contact/">Contact</a>&mdash;
        {% if "swh.web.jslicenses" in SWH_DJANGO_APPS %}
          <a href="{% url 'jslicenses' %}" rel="jslicense">JavaScript license information</a>&mdash;
        {% endif %}
        <a href="{% url 'api-1-homepage' %}">Web API</a>
      {% else %}
        {% include "mirror-footer.html" %}
      {% endif %}
      <br />
      {% if "production" not in DJANGO_SETTINGS_MODULE %}swh-web v{{ swh_web_version }}{% endif %}
    </p>
  </div>
</footer>
