aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBagas Sanjaya <bagasdotme@gmail.com>2020-09-10 21:29:26 +0700
committerGitHub <noreply@github.com>2020-09-10 15:29:26 +0100
commit4c42fce40175b735a689289bf61ca65a8e2266b2 (patch)
treeec58f144bd97ebca83dbccf2e56041c4a6e7bb59
parent7354efe702bdf777b5ec245b7d6bf5dc46be4b02 (diff)
downloadgitea-4c42fce40175b735a689289bf61ca65a8e2266b2.tar.gz
gitea-4c42fce40175b735a689289bf61ca65a8e2266b2.zip
Add placeholder text for bio profile text form (#12792)
* Add placeholder text * Localize
-rw-r--r--options/locale/locale_en-US.ini1
-rw-r--r--templates/user/settings/profile.tmpl2
2 files changed, 2 insertions, 1 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 80308214dd..3a4bf8173f 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -426,6 +426,7 @@ uid = Uid
u2f = Security Keys
public_profile = Public Profile
+biography_placeholder = Tell us a little bit about yourself
profile_desc = Your email address will be used for notifications and other operations.
password_username_disabled = Non-local users are not allowed to change their username. Please contact your site administrator for more details.
full_name = Full Name
diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl
index b170c67579..1f34e24585 100644
--- a/templates/user/settings/profile.tmpl
+++ b/templates/user/settings/profile.tmpl
@@ -33,7 +33,7 @@
</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>
+ <textarea id="description" name="description" rows="2" placeholder="{{.i18n.Tr "settings.biography_placeholder"}}">{{.SignedUser.Description}}</textarea>
</div>
<div class="field {{if .Err_Website}}error{{end}}">
<label for="website">{{.i18n.Tr "settings.website"}}</label>