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 %}
|
{% for url, icon, name in sources %}
|
||||||
<li class="login-pf-social-link">
|
<li class="login-pf-social-link">
|
||||||
<a href="{{ url }}">
|
<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>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Reference in a new issue