diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-10-09 21:09:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-09 21:09:02 +0800 |
commit | 7ad46cc116e4749a0d45572f1a8c53d0c8729080 (patch) | |
tree | 5d8bd655c1e71ffc4870a8b89a5d9d23660123d3 /modules/templates/helper.go | |
parent | dd611c9a86f5a192a7a76146613a7e087b09f221 (diff) | |
download | gitea-7ad46cc116e4749a0d45572f1a8c53d0c8729080.tar.gz gitea-7ad46cc116e4749a0d45572f1a8c53d0c8729080.zip |
fix template bug on mirror repository setting page (#8438)
Diffstat (limited to 'modules/templates/helper.go')
-rw-r--r-- | modules/templates/helper.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go index b40f7117f5..2c53e05fca 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, }} } |