diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 8677461322..46138fad54 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1030,10 +1030,8 @@ transfer.no_permission_to_reject = You do not have permission to reject this tra desc.private = Private desc.public = Public -desc.private_template = Private template -desc.public_template = Template +desc.template = Template desc.internal = Internal -desc.internal_template = Internal template desc.archived = Archived template.items = Template Items diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index c23b6a1b63..2581864547 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -55,29 +55,22 @@ {{.Name}} {{if .IsArchived}} - {{ctx.Locale.Tr "repo.desc.archived"}} + {{ctx.Locale.Tr "repo.desc.archived"}} + {{end}} + {{if .IsPrivate}} + {{ctx.Locale.Tr "repo.desc.private"}} + {{else}} + {{if .Owner.Visibility.IsPrivate}} + {{ctx.Locale.Tr "repo.desc.internal"}} + {{end}} {{end}} {{if .IsTemplate}} - {{if .IsPrivate}} - {{ctx.Locale.Tr "repo.desc.private_template"}} - {{else}} - {{if .Owner.Visibility.IsPrivate}} - {{ctx.Locale.Tr "repo.desc.internal_template"}} - {{end}} - {{end}} - {{else}} - {{if .IsPrivate}} - {{ctx.Locale.Tr "repo.desc.private"}} - {{else}} - {{if .Owner.Visibility.IsPrivate}} - {{ctx.Locale.Tr "repo.desc.internal"}} - {{end}} - {{end}} + {{ctx.Locale.Tr "repo.desc.template"}} {{end}} - {{if .IsFork}} - {{svg "octicon-repo-forked"}} - {{else if .IsMirror}} + {{if .IsMirror}} {{svg "octicon-mirror"}} + {{else if .IsFork}} + {{svg "octicon-repo-forked"}} {{end}} {{.NumWatches}} diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl index 3583908743..1976ed5a15 100644 --- a/templates/explore/repo_list.tmpl +++ b/templates/explore/repo_list.tmpl @@ -14,29 +14,17 @@ {{if .IsArchived}} {{ctx.Locale.Tr "repo.desc.archived"}} {{end}} - {{if .IsTemplate}} - {{if .IsPrivate}} - {{ctx.Locale.Tr "repo.desc.private_template"}} - {{else}} - {{if .Owner.Visibility.IsPrivate}} - {{ctx.Locale.Tr "repo.desc.internal_template"}} - {{end}} - {{end}} + {{if .IsPrivate}} + {{ctx.Locale.Tr "repo.desc.private"}} {{else}} - {{if .IsPrivate}} - {{ctx.Locale.Tr "repo.desc.private"}} - {{else}} - {{if .Owner.Visibility.IsPrivate}} - {{ctx.Locale.Tr "repo.desc.internal"}} - {{end}} + {{if .Owner.Visibility.IsPrivate}} + {{ctx.Locale.Tr "repo.desc.internal"}} {{end}} {{end}} + {{if .IsTemplate}} + {{ctx.Locale.Tr "repo.desc.template"}} + {{end}} - {{if .IsFork}} - {{svg "octicon-repo-forked"}} - {{else if .IsMirror}} - {{svg "octicon-mirror"}} - {{end}}
{{if .PrimaryLanguage}} diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 2eb9014cdd..895d18d6fd 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -11,26 +11,19 @@
/
{{.Name}}
- {{if .IsTemplate}} - {{if .IsPrivate}} - {{ctx.Locale.Tr "repo.desc.private_template"}} - {{else}} - {{if .Owner.Visibility.IsPrivate}} - {{ctx.Locale.Tr "repo.desc.internal_template"}} - {{end}} - {{end}} - {{else}} - {{if .IsPrivate}} - {{ctx.Locale.Tr "repo.desc.private"}} - {{else}} - {{if .Owner.Visibility.IsPrivate}} - {{ctx.Locale.Tr "repo.desc.internal"}} - {{end}} - {{end}} - {{end}} {{if .IsArchived}} {{ctx.Locale.Tr "repo.desc.archived"}} {{end}} + {{if .IsPrivate}} + {{ctx.Locale.Tr "repo.desc.private"}} + {{else}} + {{if .Owner.Visibility.IsPrivate}} + {{ctx.Locale.Tr "repo.desc.internal"}} + {{end}} + {{end}} + {{if .IsTemplate}} + {{ctx.Locale.Tr "repo.desc.template"}} + {{end}}
{{if $.EnableFeed}} {{svg "octicon-rss" 18}} diff --git a/templates/repo/icon.tmpl b/templates/repo/icon.tmpl index 8ad9a77b19..5a80b959d0 100644 --- a/templates/repo/icon.tmpl +++ b/templates/repo/icon.tmpl @@ -1,10 +1,6 @@ {{$avatarLink := (.RelAvatarLink ctx)}} {{if $avatarLink}} {{.FullName}} -{{else if $.IsTemplate}} - {{svg "octicon-repo-template" 32}} -{{else if $.IsPrivate}} - {{svg "octicon-lock" 32}} {{else if $.IsMirror}} {{svg "octicon-mirror" 32}} {{else if $.IsFork}}