summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-10-09 21:09:02 +0800
committerGitHub <noreply@github.com>2019-10-09 21:09:02 +0800
commit7ad46cc116e4749a0d45572f1a8c53d0c8729080 (patch)
tree5d8bd655c1e71ffc4870a8b89a5d9d23660123d3 /templates
parentdd611c9a86f5a192a7a76146613a7e087b09f221 (diff)
downloadgitea-7ad46cc116e4749a0d45572f1a8c53d0c8729080.tar.gz
gitea-7ad46cc116e4749a0d45572f1a8c53d0c8729080.zip
fix template bug on mirror repository setting page (#8438)
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/settings/options.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index 4f7d32479e..a93efb8d25 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -88,15 +88,15 @@
<i class="icon dropdown"></i>
<label for="">{{.i18n.Tr "repo.need_auth"}}</label>
</label>
- <div class="content {{if .Err_Auth}}active{{else if .Mirror.Username}}active{{end}}">
+ <div class="content {{if .Err_Auth}}active{{else if (MirrorUserName .Mirror)}}active{{end}}">
<div class="inline field {{if .Err_Auth}}error{{end}}">
<label for="mirror_username">{{.i18n.Tr "username"}}</label>
- <input id="mirror_username" name="mirror_username" value="{{.Mirror.Username}}" {{if not .mirror_username}}data-need-clear="true"{{end}}>
+ <input id="mirror_username" name="mirror_username" value="{{MirrorUserName .Mirror}}" {{if not .mirror_username}}data-need-clear="true"{{end}}>
</div>
<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="{{.Mirror.Password}}" {{if not .mirror_password}}data-need-clear="true"{{end}}>
+ <input id="mirror_password" name="mirror_password" type="password" value="{{MirrorPassword .Mirror}}" {{if not .mirror_password}}data-need-clear="true"{{end}}>
</div>
</div>
</div>