]> git.ipfire.org Git - ipfire.org.git/commitdiff
people: Encourage people to add a description
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 30 Oct 2019 10:35:49 +0000 (10:35 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 30 Oct 2019 10:35:49 +0000 (10:35 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/people/index.html
src/web/people.py

index 0d17bf1b41915b51faeb9f462cb8504b01956dd0..f8173acd4f7309ad17eaa198a73bf51d4d5523b3 100644 (file)
                                                                <p class="card-text">
                                                                        {{ _("A picture says more than a thousand words.") }}
                                                                </p>
+                                                       {% elif hint == "description" %}
+                                                               <h6 class="mb-0">{{ _("Tell Us Who You Are!" ) }}</h6>
+
+                                                               <p class="card-text">
+                                                                       {{ _("Add a couple of lines about yourself to your profile so that others get to know you better!") }}
+                                                               </p>
                                                        {% end %}
                                                </a>
                                        {% end %}
index 9cbb8b87f5abc772f80f6b3000c61ee0a3893e6c..7f49cdfd6804d6f265f20daaf3c202d4499c6333 100644 (file)
@@ -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)