<!--
Copyright (c) 2020 Keitaro AB

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.
-->

{% ckan_extends %}
{% block header_account_notlogged %}

  {% if h.is_default_login_enabled() %}
    <li>{% link_for _('Log in'), named_route='user.login' %}</li>
    {% if h.check_access('user_create') %}
      <li>{% link_for _('Register'), named_route='user.register', class_='sub' %}</li>
    {% endif %}
  {% else %}
    <li>{% link_for _('Log in'), named_route='saml2auth.saml2login' %}</li>
  {% endif %}

{% endblock %}