2023-08-16 15:11:03 +01:00
|
|
|
{{- $name := .Get "name" -}}
|
|
|
|
{{- $state := .Get "state" | default "open" }}
|
|
|
|
|
2024-02-20 17:59:31 -05:00
|
|
|
<li class="hx-group hx-flex hx-list-none hx-flex-col">
|
|
|
|
<button class="hextra-filetree-folder hx-inline-flex hx-cursor-pointer hx-items-center hx-py-1 hover:hx-opacity-60">
|
|
|
|
<span data-state="{{ $state }}" class="data-[state=open]:hx-hidden">
|
2023-08-16 15:11:03 +01:00
|
|
|
{{- partial "utils/icon" (dict "name" "folder" "attributes" "width=1em") -}}
|
|
|
|
</span>
|
2024-02-20 17:59:31 -05:00
|
|
|
<span data-state="{{ $state }}" class="data-[state=closed]:hx-hidden">
|
2023-08-16 15:11:03 +01:00
|
|
|
{{- partial "utils/icon" (dict "name" "folder-open" "attributes" "width=1em") -}}
|
|
|
|
</span>
|
2024-03-05 11:17:29 +03:30
|
|
|
<span class="ltr:hx-ml-1 rtl:hx-mr-1">{{ $name }}</span>
|
2023-08-16 15:11:03 +01:00
|
|
|
</button>
|
2024-03-05 11:17:29 +03:30
|
|
|
<ul data-state="{{ $state }}" class="ltr:hx-pl-5 rtl:hx-pr-5 data-[state=closed]:hx-hidden">
|
2025-03-11 21:42:16 +00:00
|
|
|
{{- .InnerDeindent -}}
|
2023-08-16 15:11:03 +01:00
|
|
|
</ul>
|
|
|
|
</li>
|