aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2017-02-09 17:58:05 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-02-09 17:58:04 +0800
commit40f43777171e9dce1be0d27aaa14b8e4160dd434 (patch)
tree9fa521406ac9ca8789dc0802e949534688f8a443 /templates
parenta6751cec049f4a814b590beab641e94ab1bd30c8 (diff)
downloadgitea-40f43777171e9dce1be0d27aaa14b8e4160dd434.tar.gz
gitea-40f43777171e9dce1be0d27aaa14b8e4160dd434.zip
feat: fill in ssh key title automatically. (#863)
Diffstat (limited to 'templates')
-rw-r--r--templates/user/settings/sshkeys.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/user/settings/sshkeys.tmpl b/templates/user/settings/sshkeys.tmpl
index 33426fdc56..72344df3ed 100644
--- a/templates/user/settings/sshkeys.tmpl
+++ b/templates/user/settings/sshkeys.tmpl
@@ -53,11 +53,11 @@
{{.CsrfTokenHtml}}
<div class="field {{if .Err_Title}}error{{end}}">
<label for="title">{{.i18n.Tr "settings.key_name"}}</label>
- <input id="title" name="title" value="{{.title}}" autofocus required>
+ <input id="ssh-key-title" name="title" value="{{.title}}" autofocus required>
</div>
<div class="field {{if .Err_Content}}error{{end}}">
<label for="content">{{.i18n.Tr "settings.key_content"}}</label>
- <textarea id="content" name="content" required>{{.content}}</textarea>
+ <textarea id="ssh-key-content" name="content" required>{{.content}}</textarea>
</div>
<button class="ui green button">
{{.i18n.Tr "settings.add_key"}}