From a4cd7a151eee1c30bd20c28022fa03bb0e6db56b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Mart=C3=ADn?= Date: Sun, 11 Oct 2015 09:45:45 +0200 Subject: [PATCH] Added social accounts to profile main page --- amiibofindr/templates/_layout.html | 2 ++ amiibofindr/templates/profile/main.html | 17 +++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/amiibofindr/templates/_layout.html b/amiibofindr/templates/_layout.html index d511ccb..bfccdc9 100644 --- a/amiibofindr/templates/_layout.html +++ b/amiibofindr/templates/_layout.html @@ -61,6 +61,7 @@ diff --git a/amiibofindr/templates/profile/main.html b/amiibofindr/templates/profile/main.html index 1ad6092..9d264cf 100644 --- a/amiibofindr/templates/profile/main.html +++ b/amiibofindr/templates/profile/main.html @@ -1,5 +1,5 @@ {% extends "_layout.html" %} -{% load i18n gravatar %} +{% load i18n gravatar socialaccount %} {% block js_views %}{{ block.super }},relation{% endblock %} @@ -8,7 +8,7 @@

-
+

{{ this_user.username }}
@@ -36,6 +36,19 @@

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