diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-25 18:57:43 +0800 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2020-01-25 10:57:42 +0000 |
commit | a67c06ce90fb3bea97987501377e4dc5f24d2151 (patch) | |
tree | 40de3d2b2de625f44529859ec4fc642ab8d31f21 /templates | |
parent | 5b17bb8f3dbc180c72446000d82ba06fd7349dc7 (diff) | |
download | gitea-a67c06ce90fb3bea97987501377e4dc5f24d2151.tar.gz gitea-a67c06ce90fb3bea97987501377e4dc5f24d2151.zip |
Sanitize credentials in mirror form (#9975)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/header.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index b1b31183c4..b3757b2764 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -14,7 +14,7 @@ {{if and .RelAvatarLink .IsPrivate}}<i class="mega-octicon octicon-lock"></i>{{end}} {{if .IsTemplate}}<i class="icon fa-copy"></i>{{end}} {{if .IsArchived}}<i class="archive icon archived-icon"></i>{{end}} - {{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener noreferrer" href="{{MirrorAddress $.Mirror}}">{{MirrorAddress $.Mirror}}</a></div>{{end}} + {{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener noreferrer" href="{{if .SanitizedOriginalURL}}{{.SanitizedOriginalURL}}{{else}}{{MirrorAddress $.Mirror}}{{end}}">{{if .SanitizedOriginalURL}}{{.SanitizedOriginalURL}}{{else}}{{MirrorAddress $.Mirror}}{{end}}</a></div>{{end}} {{if .IsFork}}<div class="fork-flag">{{$.i18n.Tr "repo.forked_from"}} <a href="{{.BaseRepo.Link}}">{{SubStr .BaseRepo.RelLink 1 -1}}</a></div>{{end}} {{if .IsGenerated}}<div class="fork-flag">{{$.i18n.Tr "repo.generated_from"}} <a href="{{.TemplateRepo.Link}}">{{SubStr .TemplateRepo.RelLink 1 -1}}</a></div>{{end}} </div> |