aboutsummaryrefslogtreecommitdiffstats
path: root/templates/explore
diff options
context:
space:
mode:
authorDenys Konovalov <kontakt@denyskon.de>2023-10-16 23:06:15 +0200
committerGitHub <noreply@github.com>2023-10-16 23:06:15 +0200
commit0271114e6400fc003d96c8499f0c8e43bbb441f9 (patch)
treef2c666f02ee0a02c1b3cde1e2389889d9b8849f3 /templates/explore
parent6c501b149809a7015e58d9627e84bfd593702f95 (diff)
downloadgitea-0271114e6400fc003d96c8499f0c8e43bbb441f9.tar.gz
gitea-0271114e6400fc003d96c8499f0c8e43bbb441f9.zip
cleanup repo details icons/labels (#27644)
Fix #27596 Change confusing behavior when showing information about a repo via labels and icons. Implement changes proposed by @lng2020 in https://github.com/go-gitea/gitea/pull/27627#pullrequestreview-1678787673.
Diffstat (limited to 'templates/explore')
-rw-r--r--templates/explore/repo_list.tmpl26
1 files changed, 7 insertions, 19 deletions
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}}
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.archived"}}</span>
{{end}}
- {{if .IsTemplate}}
- {{if .IsPrivate}}
- <span class="ui basic label">{{ctx.Locale.Tr "repo.desc.private_template"}}</span>
- {{else}}
- {{if .Owner.Visibility.IsPrivate}}
- <span class="ui basic label">{{ctx.Locale.Tr "repo.desc.internal_template"}}</span>
- {{end}}
- {{end}}
+ {{if .IsPrivate}}
+ <span class="ui basic label">{{ctx.Locale.Tr "repo.desc.private"}}</span>
{{else}}
- {{if .IsPrivate}}
- <span class="ui basic label">{{ctx.Locale.Tr "repo.desc.private"}}</span>
- {{else}}
- {{if .Owner.Visibility.IsPrivate}}
- <span class="ui basic label">{{ctx.Locale.Tr "repo.desc.internal"}}</span>
- {{end}}
+ {{if .Owner.Visibility.IsPrivate}}
+ <span class="ui basic label">{{ctx.Locale.Tr "repo.desc.internal"}}</span>
{{end}}
{{end}}
+ {{if .IsTemplate}}
+ <span class="ui basic label">{{ctx.Locale.Tr "repo.desc.template"}}</span>
+ {{end}}
</span>
- {{if .IsFork}}
- <span data-tooltip-content="{{ctx.Locale.Tr "repo.fork"}}">{{svg "octicon-repo-forked"}}</span>
- {{else if .IsMirror}}
- <span data-tooltip-content="{{ctx.Locale.Tr "mirror"}}">{{svg "octicon-mirror"}}</span>
- {{end}}
</div>
<div class="flex-item-trailing">
{{if .PrimaryLanguage}}