From 67fc00bccaded924e574bdb5df190818c4b1a354 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 30 Oct 2019 10:35:49 +0000 Subject: [PATCH] people: Encourage people to add a description Signed-off-by: Michael Tremer --- src/templates/people/index.html | 6 ++++++ src/web/people.py | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/src/templates/people/index.html b/src/templates/people/index.html index 0d17bf1b..f8173acd 100644 --- a/src/templates/people/index.html +++ b/src/templates/people/index.html @@ -40,6 +40,12 @@

{{ _("A picture says more than a thousand words.") }}

+ {% elif hint == "description" %} +
{{ _("Tell Us Who You Are!" ) }}
+ +

+ {{ _("Add a couple of lines about yourself to your profile so that others get to know you better!") }} +

{% end %} {% end %} diff --git a/src/web/people.py b/src/web/people.py index 9cbb8b87..7f49cdfd 100644 --- a/src/web/people.py +++ b/src/web/people.py @@ -22,6 +22,10 @@ class IndexHandler(auth.CacheMixin, base.BaseHandler): if not self.current_user.has_avatar(): hints.append("avatar") + # Suggest adding a description + if not self.current_user.description: + hints.append("description") + self.render("people/index.html", hints=hints) -- 2.39.2