{# SPDX-FileCopyrightText: 2015-2020 CERN. SPDX-FileCopyrightText: 2021 Graz University of Technology. SPDX-FileCopyrightText: 2020-2026 TU Wien. SPDX-License-Identifier: MIT #} {#- base: invenio-oauthclient v5.2.0 #} {#- changes: conditional super() call, customized heading #} {#- TODO: this is horribly broken right now #} {%- extends config.OAUTHCLIENT_LOGIN_USER_TEMPLATE_PARENT %} {%- from "invenio_oauthclient/_macros.html" import oauth_button %} {#- change: header text, style, and element #} {%- block form_header %}

{{ _("Log in to %(site_name)s", site_name=config.THEME_SITENAME) }}

{%- endblock -%} {%- 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 the local login is enabled, show it #} {%- if config.ACCOUNTS_LOCAL_LOGIN_ENABLED %}
{{ _("OR") }}
{%- endif %} {% endif %} {#- change: conditional super(), to prevent showing a 'login' button #} {#- if there is no other input #} {% if config.ACCOUNTS_LOCAL_LOGIN_ENABLED %} {{ super() }} {% endif %} {% endblock %} {%- block recoverable %} {%- if security.recoverable or security.confirmable %}
{%- if security.recoverable %}
{{ _('Forgot password?') }}
{%- endif %} {%- if security.confirmable %}
{{_('Resend confirmation email')}}
{%- endif %}
{%- endif %} {%- endblock %} {#- change: add custom styling #} {%- block css %} {{ super() }} {{ webpack['invenio-theme-tuw-login.css'] }} {%- endblock %}