Skip to content

Commit

Permalink
fix(login): Added KC register link to login page
Browse files Browse the repository at this point in the history
  • Loading branch information
monotasker committed Dec 2, 2024
1 parent c5f0b22 commit 86ab051
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
6 changes: 6 additions & 0 deletions assets/less/site/globals/site.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ a {
}
}

.login.segment {
.ui.button {
text-decoration: none;
}
}

// FIXME: hidden for now

#skip-to-main {
Expand Down
1 change: 1 addition & 0 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ KC_HELP_URL = f"https://support.{KC_WORDPRESS_DOMAIN}"
KC_WORKS_HELP_URL = f"{KC_HELP_URL}/kcworks/"
KC_FAQ_URL = f"{KC_HELP_URL}/faqs/#kcworks-faq"
KC_PROFILES_URL_BASE = f"https://{KC_WORDPRESS_DOMAIN}/members/"
KC_REGISTER_URL = f"https://{KC_WORDPRESS_DOMAIN}/membership/"

KC_SEARCH_URL_DOCS = os.getenv(
"INVENIO_KC_SEARCH_URL_DOCS",
Expand Down
13 changes: 7 additions & 6 deletions templates/semantic-ui/invenio_saml/login_user.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
{% block page_body %}
<div class="ui padded segments big form">
<div class="ui login segment padded">
<div class="divider hidden"></div>
{%- block form_header %}
<h3 class="ui login header">{{ _('Log in with your account from') }}</h3>
<h3 class="ui login header mt-10 mb-30">{{ _('Log in with your account from') }}</h3>
{%- endblock form_header %}

{%- block form_outer %}
Expand All @@ -33,7 +32,7 @@ <h3 class="ui login header">{{ _('Log in with your account from') }}</h3>
{% endfor %}
{% for name in config.SSO_SAML_IDPS.keys() %}
<div class="field">
<a class="fluid ui basic button huge" href="{{ url_for('sso_saml.sso', idp=name) }}">
<a class="fluid ui button huge primary" href="{{ url_for('sso_saml.sso', idp=name) }}">
{# <i class="{{ name|lower() }} icon"></i> #}
{{
_('%(title)s', title=config.SSO_SAML_IDPS[name]['title']|default("SAML", true))
Expand All @@ -44,8 +43,10 @@ <h3 class="ui login header">{{ _('Log in with your account from') }}</h3>
{% endif %}
</div>
{%- endblock form_outer %}
<div class="divider hidden"></div>

</>
<div class="ui center aligned mt-30">
{{ _('Not yet a member?') }} <a href="{{ config.KC_REGISTER_URL }}">{{ _('Sign up') }}</a>!
</div>
</div>
</div>

{% endblock page_body %}

0 comments on commit 86ab051

Please sign in to comment.