diff --git a/modules/templates/helper.go b/modules/templates/helper.go index b40f7117f..2c53e05fc 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -236,6 +236,8 @@ func NewFuncMap() []template.FuncMap { "CommentMustAsDiff": gitdiff.CommentMustAsDiff, "MirrorAddress": mirror_service.Address, "MirrorFullAddress": mirror_service.AddressNoCredentials, + "MirrorUserName": mirror_service.Username, + "MirrorPassword": mirror_service.Password, }} } diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 4f7d32479..a93efb8d2 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -88,15 +88,15 @@ -
+
- +
- +