diff --git a/amiibofindr/templates/profile/main.html b/amiibofindr/templates/profile/main.html index e45036e..0d440b5 100644 --- a/amiibofindr/templates/profile/main.html +++ b/amiibofindr/templates/profile/main.html @@ -37,21 +37,23 @@
- {% get_social_accounts this_user as accounts %} - {% if accounts %} -

{% trans "Contact me in:" %}

-
- {% for provider, profiles in accounts.items %} - {% for profile in profiles %} - + {% if user.is_authenticated %} + {% get_social_accounts this_user as accounts %} + {% if accounts %} +

{% trans "Contact me in:" %}

+
+ {% for provider, profiles in accounts.items %} + {% for profile in profiles %} + + {% endfor %} {% endfor %} - {% endfor %} -
+
+ {% endif %} {% endif %}
{% if user.pk == this_user.pk %}