core: only show icon on login page if defined

This commit is contained in:
Jens Langhammer 2020-02-18 17:00:26 +01:00
parent 38dfb03668
commit 878169ea2e

View file

@ -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 %}