summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBagas Sanjaya <bagasdotme@gmail.com>2020-08-20 22:51:34 +0700
committerGitHub <noreply@github.com>2020-08-20 11:51:34 -0400
commitfff0204cab4df3b36ed746536a1601d79a5a27a1 (patch)
treefd84117b2e5d00a74fd3d406a09421ed4f8bc0d8 /templates
parent0c9eb468e9a55f933286a45f366f41a7a4e79637 (diff)
downloadgitea-fff0204cab4df3b36ed746536a1601d79a5a27a1.tar.gz
gitea-fff0204cab4df3b36ed746536a1601d79a5a27a1.zip
Add placeholder text for "Add SSH/GPG Key" forms (#12533)
* Add placeholder text for "Add SSH/GPG Key" forms This commit add placeholder text for both Add SSH key and Add GPG key forms. * Localize placeholders Changes requested by @zeripath Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r--templates/user/settings/keys_gpg.tmpl2
-rw-r--r--templates/user/settings/keys_ssh.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/user/settings/keys_gpg.tmpl b/templates/user/settings/keys_gpg.tmpl
index f86b44bef0..332f864dcf 100644
--- a/templates/user/settings/keys_gpg.tmpl
+++ b/templates/user/settings/keys_gpg.tmpl
@@ -47,7 +47,7 @@
<input type="hidden" name="title" value="none">
<div class="field {{if .Err_Content}}error{{end}}">
<label for="content">{{.i18n.Tr "settings.key_content"}}</label>
- <textarea id="gpg-key-content" name="content" required>{{.content}}</textarea>
+ <textarea id="gpg-key-content" name="content" placeholder="{{.i18n.Tr "settings.key_content_gpg_placeholder"}}" required>{{.content}}</textarea>
</div>
<input name="type" type="hidden" value="gpg">
<button class="ui green button">
diff --git a/templates/user/settings/keys_ssh.tmpl b/templates/user/settings/keys_ssh.tmpl
index fec68adc1f..55e2a4b008 100644
--- a/templates/user/settings/keys_ssh.tmpl
+++ b/templates/user/settings/keys_ssh.tmpl
@@ -51,7 +51,7 @@
</div>
<div class="field {{if .Err_Content}}error{{end}}">
<label for="content">{{.i18n.Tr "settings.key_content"}}</label>
- <textarea id="ssh-key-content" name="content" required>{{.content}}</textarea>
+ <textarea id="ssh-key-content" name="content" placeholder="{{.i18n.Tr "settings.key_content_ssh_placeholder"}}" required>{{.content}}</textarea>
</div>
<input name="type" type="hidden" value="ssh">
<button class="ui green button">