From 220bf9994b9675d175d6827ce2cd2de7d75a1d7a Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 16 Apr 2024 15:08:27 +0100 Subject: [PATCH] Show invitation hint when user is alone on their instance --- snikket_web/templates/user_home.html | 9 +++++++-- snikket_web/user.py | 7 ++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/snikket_web/templates/user_home.html b/snikket_web/templates/user_home.html index faf2b68..433f2ad 100644 --- a/snikket_web/templates/user_home.html +++ b/snikket_web/templates/user_home.html @@ -6,8 +6,13 @@ {% include "copy-snippet.html" %} {% endblock %} {% block content %} -

{% trans %}Welcome!{% endtrans %}

-

{% trans user_name=user_info.display_name %}Welcome home, {{ user_name }}.{% endtrans %}

+{% if user_info.is_admin and metrics.users.active_1d <= 1 %} + +{% endif %}