mirror of https://github.com/go-gitea/gitea
Remove unnecessary template helper repoAvatar (#26387)
And simplify the "repo/icon" codepull/26386/head^2
parent
6913053223
commit
78b2a1cc36
@ -1,15 +1,16 @@ |
|||||||
<div class="repo-icon"> |
<div class="repo-icon"> |
||||||
{{if $.IsTemplate}} |
{{$avatarLink := .RelAvatarLink}} |
||||||
|
{{if $avatarLink}} |
||||||
|
<img class="ui avatar gt-vm" src="{{$avatarLink}}" width="32" height="32" alt="{{.FullName}}"> |
||||||
|
{{else if $.IsTemplate}} |
||||||
{{svg "octicon-repo-template" 32}} |
{{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}} |
{{else}} |
||||||
{{if $.IsPrivate}} |
{{svg "octicon-repo" 32}} |
||||||
{{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}} |
|
||||||
{{end}} |
{{end}} |
||||||
</div> |
</div> |
||||||
|
Loading…
Reference in new issue