summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-05-31 11:46:20 +0100
committerGitHub <noreply@github.com>2021-05-31 11:46:20 +0100
commit7a484c0788f14412bd0531fdd021b4b292145bc5 (patch)
tree5231a76aa6a9e6eddb5a420a999fde31631a07e5 /templates/repo
parentcb940c4312981893fdb54cbd0e07520546776b34 (diff)
downloadgitea-7a484c0788f14412bd0531fdd021b4b292145bc5.tar.gz
gitea-7a484c0788f14412bd0531fdd021b4b292145bc5.zip
Hide mirror passwords on repo settings page (#16022)
This PR simply hides mirror passwords from being displayed on the repo settings page. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/settings/options.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index fb4b65dbad..ece439f3d9 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -106,8 +106,9 @@
<input class="fake" type="password">
<div class="inline field {{if .Err_Auth}}error{{end}}">
<label for="mirror_password">{{.i18n.Tr "password"}}</label>
- <input id="mirror_password" name="mirror_password" type="password" value="{{MirrorPassword .Mirror}}" {{if not .mirror_password}}data-need-clear="true"{{end}} autocomplete="off">
+ <input id="mirror_password" name="mirror_password" type="password" placeholder="{{if MirrorPassword .Mirror }}{{.i18n.Tr "repo.mirror_password_placeholder"}}{{else}}{{.i18n.Tr "repo.mirror_password_blank_placeholder"}}{{end}}" value="" {{if not .mirror_password}}data-need-clear="true"{{end}} autocomplete="off">
</div>
+ <p class="help">{{.i18n.Tr "repo.mirror_password_help"}}</p>
</div>
</details>