0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-03 23:22:39 +02:00

fix: update group sidebar item template

use `SignedUser` instead of `Doer` because `Doer` is nil on org homepages
This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-12-20 15:24:51 -05:00
parent 10ac130ec7
commit 5df1eafe98
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -3,7 +3,7 @@
<li class="expandable-menu-item item tw-px-0" {{if $item.IsGroup}} data-is-group="true"{{end}}
data-sort-id="{{if $item.IsGroup}}group{{else}}repo{{end}}-{{$item.ID}}-{{$item.Sort}}"
data-id="{{$item.ID}}">
<label class="tw-gap-2{{if $item.HasChildren $.root.Doer}} has-children{{end}}">
<label class="tw-gap-2{{if $item.HasChildren $.root.SignedUser}} has-children{{end}}">
{{$active := (and $item.IsGroup (call $.root.GroupIsCurrent $item.ID))}}
{{$childContains := (call $.root.GroupHasChild $item)}}
<input type="checkbox" class="toggle tw-h-0 tw-w-0 tw-overflow-hidden tw-opacity-0 tw-absolute"{{if or $active $childContains}} checked{{end}}>