Commit d3c071c7 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers

add login image when used on the site

parent e479a9f1
Pipeline #1877 failed with stages
in 1 minute and 51 seconds
{% load socialaccount %}
{% load socialaccount static %}
{% get_providers as socialaccount_providers %}
......@@ -13,8 +13,14 @@
</li>
{% endfor %}
{% endif %}
<li>
<a title="{{provider.name}}" class="socialaccount_provider {{provider.id}} btn btn-default"
href="{% provider_login_url provider.id process=process scope=scope auth_params=auth_params %}" title="sign in with {{provider.name}}"><i class="fab fa-{{provider.name|lower}}"></i></a>
<li class="list-inline-item">
<a title="{{provider.name}}" class="socialaccount_provider {{provider.id}}"
href="{% provider_login_url provider.id process=process scope=scope auth_params=auth_params %}" title="sign in with {{provider.name}}">
{% if provider.id == "orcid" %}
<img src="{% static "/img/orcid_16x16.png" %}" alt="" />
{% else %}
<i class="fab fa-{{provider.name|lower}}"></i>
{% endif %}
</a>
</li>
{% endfor %}
{% load socialaccount %}
{% load socialaccount static %}
{% get_providers as socialaccount_providers %}
......@@ -15,6 +15,12 @@
{% endif %}
<li>
<a title="{{provider.name}}" class="socialaccount_provider {{provider.id}} btn btn-default"
href="{% provider_login_url provider.id process=process scope=scope auth_params=auth_params %}"><i class="fab fa-{{provider.name|lower}}"></i> {{provider.name}}</a>
href="{% provider_login_url provider.id process=process scope=scope auth_params=auth_params %}">
{% if provider.id == "orcid" %}
<img src="{% static "/img/orcid_16x16.png" %}" alt="ORCID logo" />
{% else %}
<i class="fab fa-{{provider.name|lower}}"></i>
{% endif %}
{{provider.name}}</a>
</li>
{% endfor %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment