diff --git a/calsocial/templates/_macros.html b/calsocial/templates/_macros.html index 142c65a..b086a06 100644 --- a/calsocial/templates/_macros.html +++ b/calsocial/templates/_macros.html @@ -18,3 +18,13 @@ {% endif %} {% endmacro %} + +{% macro profile_link(profile) %} + + {% if profile and profile.builtin_avatar %} + + {% endif %} +
{{ profile.display_name }}
+
{{ profile }}
+
+{% endmacro %} diff --git a/calsocial/templates/profile-details.html b/calsocial/templates/profile-details.html index cf75d74..8e20ab1 100644 --- a/calsocial/templates/profile-details.html +++ b/calsocial/templates/profile-details.html @@ -1,4 +1,5 @@ {% extends 'base.html' %} +{% from '_macros.html' import profile_link %} {% block content %}

@@ -21,7 +22,7 @@

{% for followed in profile.followed_list %} -{{ followed }} +{{ profile_link(followed) }} {% endfor %}

@@ -29,6 +30,6 @@

{% for follower in profile.follower_list %} -{{ follower }} +{{ profile_link(follower) }} {% endfor %} {% endblock content %} diff --git a/calsocial/templates/welcome.html b/calsocial/templates/welcome.html index 2c6b9a7..8f3c363 100644 --- a/calsocial/templates/welcome.html +++ b/calsocial/templates/welcome.html @@ -1,4 +1,5 @@ {% extends 'base.html' %} +{% from '_macros.html' import profile_link %} {% block content %}
@@ -73,11 +74,7 @@

{% trans %}Administered by{% endtrans %}

- -
-
Your Admin here
-
@admin@he.re
-
+ {{ profile_link(none) }}