diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-04-14 21:33:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-14 15:33:22 +0200 |
commit | 424bd86c607048a4cdf618614a24cc3aeb2d0ac8 (patch) | |
tree | 1e83316166b2494d5907b73c31f296f236f30b41 /templates/admin/repo | |
parent | 8e2a8efd84bf39c4dd38f7f4acdc2d7f499f610a (diff) | |
download | gitea-424bd86c607048a4cdf618614a24cc3aeb2d0ac8.tar.gz gitea-424bd86c607048a4cdf618614a24cc3aeb2d0ac8.zip |
Display more repository type on admin repository management (#15440)
Diffstat (limited to 'templates/admin/repo')
-rw-r--r-- | templates/admin/repo/list.tmpl | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index dbd1ad6921..e96d9ebb33 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -52,8 +52,30 @@ </td> <td> <a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a> - {{if .IsPrivate}} - <span class="text gold">{{svg "octicon-lock"}}</span> + {{if .IsArchived}} + <span class="ui basic mini label">{{$.i18n.Tr "repo.desc.archived"}}</span> + {{end}} + {{if .IsTemplate}} + {{if .IsPrivate}} + <span class="ui basic mini label">{{$.i18n.Tr "repo.desc.private_template"}}</span> + {{else}} + {{if .Owner.Visibility.IsPrivate}} + <span class="ui basic mini label">{{$.i18n.Tr "repo.desc.internal_template"}}</span> + {{end}} + {{end}} + {{else}} + {{if .IsPrivate}} + <span class="ui basic mini label">{{$.i18n.Tr "repo.desc.private"}}</span> + {{else}} + {{if .Owner.Visibility.IsPrivate}} + <span class="ui basic mini label">{{$.i18n.Tr "repo.desc.internal"}}</span> + {{end}} + {{end}} + {{end}} + {{if .IsFork}} + {{svg "octicon-repo-forked"}} + {{else if .IsMirror}} + {{svg "octicon-mirror"}} {{end}} </td> <td>{{.NumWatches}}</td> |