From: Michael Tremer Date: Tue, 29 Oct 2019 15:40:32 +0000 (+0000) Subject: people: Make space for a description X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c4522dc7cd32be3dc42f05582108b1bc1041b1e;p=ipfire.org.git people: Make space for a description Signed-off-by: Michael Tremer --- diff --git a/src/backend/accounts.py b/src/backend/accounts.py index 70b53acd..37eedd50 100644 --- a/src/backend/accounts.py +++ b/src/backend/accounts.py @@ -940,6 +940,18 @@ class Account(Object): return ret + # Description + + def get_description(self): + return self._get_string("description") + + def set_description(self, description): + self._set_string("description", description) + + description = property(get_description, set_description) + + # Avatar + def has_avatar(self): has_avatar = self.memcache.get("accounts:%s:has-avatar" % self.uid) if has_avatar is None: diff --git a/src/templates/people/user-edit.html b/src/templates/people/user-edit.html index 28e548c0..d831ed2e 100644 --- a/src/templates/people/user-edit.html +++ b/src/templates/people/user-edit.html @@ -66,15 +66,28 @@ -
- +
+ {{ _("Tell Us Who You Are") }} - +
+ - - {{ _("Upload a new avatar") }} - -
+ + {{ _("You can use Markdown syntax as you know it from the IPFire Wiki") }} + +
+ +
+ + + + + + {{ _("Upload a new avatar") }} + +
+ {% if account.has_mail() %}
diff --git a/src/templates/people/user.html b/src/templates/people/user.html index b2a6f32a..a94fbdf5 100644 --- a/src/templates/people/user.html +++ b/src/templates/people/user.html @@ -5,6 +5,14 @@