This commit is contained in:
cangui 2025-06-21 07:17:08 +02:00
parent d9b0157dd0
commit 97b620e807
2 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,7 @@
hx-get="{{ if .IsDir }}/folders?path={{ urlquery .Path }}{{ else }}/folders/detail?path={{ urlquery .Path }}{{ end }}"
hx-target="{{ if .IsDir }}#content{{ else }}#test{{ end }}"
hx-push-url="true"
hx-swap-oob="beforeend"
style="cursor:pointer">
<div class="card-image">
<figure class="image is-4by3">

View File

@ -14,6 +14,7 @@
<a
hx-get="/folders?path={{ urlquery .Name }}"
hx-target="#file-list"
hx-swap-oob="beforeend"
hx-push-url="true"
class="{{ if eq $.CurrentPath .Name }}is-active{{ end }}"
>
@ -34,6 +35,7 @@
hx-get="/folders"
hx-target="#file-list"
hx-push-url="true"
hx-swap-oob="beforeend"
>
Home
</a>
@ -48,6 +50,7 @@
hx-get="/folders?path={{ urlquery (trimPrefix "/" $acc) }}"
hx-target="#file-list"
hx-push-url="true"
hx-swap-oob="beforeend"
>
{{ $p }}
</a>
@ -62,8 +65,9 @@
hx-trigger="load"
hx-get="/folders?path={{ urlquery .CurrentPath }}"
hx-target="#file-list"
hx-swap-oob="beforeend"
>
{{ template "_file_list.pages.tmpl" . }}
<!-- {{ template "_file_list.pages.tmpl" . }} -->
</div>
</div>