diff options
author | jaqra <48099350+jaqra@users.noreply.github.com> | 2019-09-13 07:15:26 +0300 |
---|---|---|
committer | Lauris BH <lauris.buksis@zzdats.lv> | 2019-09-13 07:15:26 +0300 |
commit | 0c47fe2d77bdbff8b3cee9d102297d4e1a90441e (patch) | |
tree | 6b3b2828e98693d8ccffa8a6f1bb3d7e6a1ee919 /templates/repo/header.tmpl | |
parent | 2837563147d18dba263ed4c7a1b87571474220c4 (diff) | |
download | gitea-0c47fe2d77bdbff8b3cee9d102297d4e1a90441e.tar.gz gitea-0c47fe2d77bdbff8b3cee9d102297d4e1a90441e.zip |
[fix #7384] make show private icon when repo avatar set (#8144)
Diffstat (limited to 'templates/repo/header.tmpl')
-rw-r--r-- | templates/repo/header.tmpl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index f264a9b559..e657042b62 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -11,6 +11,7 @@ <a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a> <div class="divider"> / </div> <a href="{{$.RepoLink}}">{{.Name}}</a> + {{if and .RelAvatarLink .IsPrivate}}<i class="mega-octicon octicon-lock"></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="{{$.Mirror.Address}}">{{$.Mirror.Address}}</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}} |