-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Labels
skip-changelogThis PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.topic/uiChange the appearance of the Gitea UIChange the appearance of the Gitea UItype/bug
Milestone
Description
Description
As title.
The problem is
gitea/templates/explore/repo_list.tmpl
Lines 13 to 40 in c37f95f
<span class="label-list"> | |
{{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}} | |
{{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}} | |
{{end}} | |
{{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> |
and
gitea/templates/repo/icon.tmpl
Lines 1 to 14 in c37f95f
{{$avatarLink := (.RelAvatarLink ctx)}} | |
{{if $avatarLink}} | |
<img class="ui avatar gt-vm" src="{{$avatarLink}}" width="32" height="32" alt="{{.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}} | |
{{svg "octicon-repo-forked" 32}} | |
{{else}} | |
{{svg "octicon-repo" 32}} | |
{{end}} |
have duplicate (but not same) check.
Screenshots

Gitea Version
latest codebase
Can you reproduce the bug on the Gitea demo site?
Yes
Operating System
No response
Browser Version
none
Metadata
Metadata
Assignees
Labels
skip-changelogThis PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.topic/uiChange the appearance of the Gitea UIChange the appearance of the Gitea UItype/bug