Bläddra i källkod

fix template bug on mirror repository setting page (#8438)

tags/v1.10.0-rc1
Lunny Xiao 4 år sedan
förälder
incheckning
7ad46cc116
Inget konto är kopplat till bidragsgivarens mejladress
2 ändrade filer med 5 tillägg och 3 borttagningar
  1. 2
    0
      modules/templates/helper.go
  2. 3
    3
      templates/repo/settings/options.tmpl

+ 2
- 0
modules/templates/helper.go Visa fil

"CommentMustAsDiff": gitdiff.CommentMustAsDiff, "CommentMustAsDiff": gitdiff.CommentMustAsDiff,
"MirrorAddress": mirror_service.Address, "MirrorAddress": mirror_service.Address,
"MirrorFullAddress": mirror_service.AddressNoCredentials, "MirrorFullAddress": mirror_service.AddressNoCredentials,
"MirrorUserName": mirror_service.Username,
"MirrorPassword": mirror_service.Password,
}} }}
} }



+ 3
- 3
templates/repo/settings/options.tmpl Visa fil

<i class="icon dropdown"></i> <i class="icon dropdown"></i>
<label for="">{{.i18n.Tr "repo.need_auth"}}</label> <label for="">{{.i18n.Tr "repo.need_auth"}}</label>
</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}}"> <div class="inline field {{if .Err_Auth}}error{{end}}">
<label for="mirror_username">{{.i18n.Tr "username"}}</label> <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> </div>
<input class="fake" type="password"> <input class="fake" type="password">
<div class="inline field {{if .Err_Auth}}error{{end}}"> <div class="inline field {{if .Err_Auth}}error{{end}}">
<label for="mirror_password">{{.i18n.Tr "password"}}</label> <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> </div>
</div> </div>

Laddar…
Avbryt
Spara