core: only show icon on login page if defined
This commit is contained in:
parent
38dfb03668
commit
878169ea2e
|
@ -51,7 +51,10 @@
|
|||
{% for url, icon, name in sources %}
|
||||
<li class="login-pf-social-link">
|
||||
<a href="{{ url }}">
|
||||
<img src="{% static 'img/logos/' %}{{ icon }}.svg" alt="{{ name }}"> {{ name }}
|
||||
{% if icon %}
|
||||
<img src="{% static 'img/logos/' %}{{ icon }}.svg" alt="{{ name }}">
|
||||
{% endif %}
|
||||
{{ name }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
|
Reference in New Issue