From a43a946f5d67b32c2101427f8cb68a15c77fb4a5 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 23 Jun 2018 12:01:31 +0200 Subject: [PATCH] Fix the follower/following page layout --- templates/followers.html | 18 +++++++++++++++++- templates/utils.html | 12 ++++++------ 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/templates/followers.html b/templates/followers.html index e4f43a1..4ad731b 100644 --- a/templates/followers.html +++ b/templates/followers.html @@ -9,8 +9,24 @@
{% for follower in followers_data %} - {{ utils.display_actor(follower) }} +
+ {{ utils.display_actor_inline(follower, size=80) }} +
{% endfor %} + + {% for follower in followers_data %} +
+ {{ utils.display_actor_inline(follower, size=80) }} +
+ {% endfor %} + + {% for follower in followers_data %} +
+ {{ utils.display_actor_inline(follower, size=80) }} +
+ {% endfor %} + +
diff --git a/templates/utils.html b/templates/utils.html index 299fd1e..5bd6091 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -1,10 +1,10 @@ -{% macro display_actor_inline(follower) -%} +{% macro display_actor_inline(follower, size=50) -%} {% if not follower.icon %} - + {% else %} -{% endif %} +{% endif %}
{{ follower.name or follower.preferredUsername }}
@@ -80,9 +80,9 @@ {% else %}
permalink -{% if item.meta.count_reply %}{{ item.meta.count_reply }} replies{% endif %} -{% if item.meta.count_boost %}{{ item.meta.count_boost }} boosts{% endif %} -{% if item.meta.count_like %}{{ item.meta.count_like }} likes{% endif %} +{% if item.meta.count_reply %}{{ item.meta.count_reply }} replies{% endif %} +{% if item.meta.count_boost %}{{ item.meta.count_boost }} boosts{% endif %} +{% if item.meta.count_like %}{{ item.meta.count_like }} likes{% endif %} {% endif %} {% if ui and session.logged_in %}