From: Michael Tremer Date: Wed, 30 Oct 2019 10:35:49 +0000 (+0000) Subject: people: Encourage people to add a description X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=67fc00bccaded924e574bdb5df190818c4b1a354;p=ipfire.org.git people: Encourage people to add a description Signed-off-by: Michael Tremer --- 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)