diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-02-16 12:16:42 +0800 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-02-16 05:16:42 +0100 |
commit | 4c12e2a4b90237a8687b497ae14a402346b0406d (patch) | |
tree | 3853168056da33a1dbecb39e6a2e6580b45b60dd /templates | |
parent | 7fd14bf7bd96849f3f64a3bcbfb914050c063660 (diff) | |
download | gitea-4c12e2a4b90237a8687b497ae14a402346b0406d.tar.gz gitea-4c12e2a4b90237a8687b497ae14a402346b0406d.zip |
fix: fill in ssh key title on setting of repo (#950)
* fix: fill in ssh key title on setting of repo
* fix: Don't overwrite ssh key title if exist.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/settings/deploy_keys.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/settings/deploy_keys.tmpl b/templates/repo/settings/deploy_keys.tmpl index 1f6b26a6da..6f419c894a 100644 --- a/templates/repo/settings/deploy_keys.tmpl +++ b/templates/repo/settings/deploy_keys.tmpl @@ -57,11 +57,11 @@ </div> <div class="field {{if .Err_Title}}error{{end}}"> <label for="title">{{.i18n.Tr "repo.settings.title"}}</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 "repo.settings.deploy_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 "repo.settings.add_deploy_key"}} |