From ec20cc9ee1546c390236816767b190c2382f3f18 Mon Sep 17 00:00:00 2001 From: Steve Bate Date: Tue, 3 Sep 2024 10:05:51 +0200 Subject: [PATCH] Improved image placeholders. --- firm_server/html/templates/actor.jinja2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firm_server/html/templates/actor.jinja2 b/firm_server/html/templates/actor.jinja2 index 48d10d3..845aace 100644 --- a/firm_server/html/templates/actor.jinja2 +++ b/firm_server/html/templates/actor.jinja2 @@ -1,7 +1,7 @@ {% extends "layout.jinja2" %} -{% set header_image = resource.image.url if resource.image else "https://placehold.co/1200x300" %} -{% set avatar_image = resource.icon.url if resource.icon else "https://placehold.co/80x80" %} +{% set header_image = resource.image.url if resource.image else "https://placehold.co/1200x300?text=" + resource.preferredUsername %} +{% set avatar_image = resource.icon.url if resource.icon else "https://placehold.co/80x80?text=" + resource.preferredUsername %} {% block style %}