summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authortechknowlogick <matti@mdranta.net>2019-03-18 22:28:10 -0400
committerGitHub <noreply@github.com>2019-03-18 22:28:10 -0400
commitd1c982cb731a0744e2a8e0863b46ff9e99c99b63 (patch)
treefd6dc3e432f90e3cc4a5e132ef97f94633ce3149 /templates
parentba2f6a45c8ef44f74772456fc98c27faca058241 (diff)
downloadgitea-d1c982cb731a0744e2a8e0863b46ff9e99c99b63.tar.gz
gitea-d1c982cb731a0744e2a8e0863b46ff9e99c99b63.zip
Add bio field for user (#6113)
Fix #4339
Diffstat (limited to 'templates')
-rw-r--r--templates/user/profile.tmpl6
-rw-r--r--templates/user/settings/profile.tmpl4
2 files changed, 10 insertions, 0 deletions
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl
index f65776bdfa..6170c6d130 100644
--- a/templates/user/profile.tmpl
+++ b/templates/user/profile.tmpl
@@ -34,6 +34,12 @@
<a target="_blank" rel="noopener noreferrer me" href="{{.Owner.Website}}">{{.Owner.Website}}</a>
</li>
{{end}}
+ {{if .Owner.Description}}
+ <li>
+ <i class="octicon octicon-info"></i>
+ <span>{{.Owner.Description}}</span>
+ </li>
+ {{end}}
{{range .OpenIDs}}
{{if .Show}}
<li>
diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl
index 6a654fda70..995bdfd638 100644
--- a/templates/user/settings/profile.tmpl
+++ b/templates/user/settings/profile.tmpl
@@ -31,6 +31,10 @@
<input name="keep_email_private" type="checkbox" {{if .SignedUser.KeepEmailPrivate}}checked{{end}}>
</div>
</div>
+ <div class="field {{if .Err_Description}}error{{end}}">
+ <label for="description">{{$.i18n.Tr "user.user_bio"}}</label>
+ <textarea id="description" name="description" rows="2">{{.SignedUser.Description}}</textarea>
+ </div>
<div class="field {{if .Err_Website}}error{{end}}">
<label for="website">{{.i18n.Tr "settings.website"}}</label>
<input id="website" name="website" type="url" value="{{.SignedUser.Website}}">