summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
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}}">