{# -*- coding: utf-8 -*-

  This file is part of Invenio.
  Copyright (C) 2015-2018 CERN.
  Copyright (C)      2021 TU Wien.
  Copyright (C)      2021 Graz University of Technology.

  Invenio is free software; you can redistribute it and/or modify it
  under the terms of the MIT License; see LICENSE file for more details.
#}
{%- extends config.OAUTHCLIENT_LOGIN_USER_TEMPLATE_PARENT %}

{%- from "invenio_oauthclient/_macros.html" import oauth_button %}

{%- block form_outer %}
  {% if config.OAUTHCLIENT_REMOTE_APPS %}
    {% for name, config in config.OAUTHCLIENT_REMOTE_APPS.items() if not config.hide %}
      {{ oauth_button(name, next=request.args.get('next')) }}
    {% endfor %}
    {%- if config.ACCOUNTS_LOCAL_LOGIN_ENABLED %}
      <h3 align="center">&mdash; {{ _("OR") }} &mdash;</h3>
    {%- endif %}
  {% endif %}
  {{ super () }}
{% endblock %}
