mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-25 12:15:54 +00:00
Remove unnecessary template helper repoAvatar (#26387)
And simplify the "repo/icon" code
This commit is contained in:
parent
6913053223
commit
78b2a1cc36
6 changed files with 16 additions and 42 deletions
|
@ -30,12 +30,7 @@
|
|||
{{range .Team.Repos}}
|
||||
<div class="flex-item flex-item-center">
|
||||
<div class="flex-item-leading">
|
||||
{{$avatar := (repoAvatar . 32)}}
|
||||
{{if $avatar}}
|
||||
{{$avatar}}
|
||||
{{else}}
|
||||
{{template "repo/icon" .}}
|
||||
{{end}}
|
||||
{{template "repo/icon" .}}
|
||||
</div>
|
||||
<div class="flex-item-main">
|
||||
<a class="flex-item-title text primary" href="{{$.Org.HomeLink}}/{{.Name | PathEscape}}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue