up
This commit is contained in:
parent
d9b0157dd0
commit
97b620e807
@ -5,6 +5,7 @@
|
|||||||
hx-get="{{ if .IsDir }}/folders?path={{ urlquery .Path }}{{ else }}/folders/detail?path={{ urlquery .Path }}{{ end }}"
|
hx-get="{{ if .IsDir }}/folders?path={{ urlquery .Path }}{{ else }}/folders/detail?path={{ urlquery .Path }}{{ end }}"
|
||||||
hx-target="{{ if .IsDir }}#content{{ else }}#test{{ end }}"
|
hx-target="{{ if .IsDir }}#content{{ else }}#test{{ end }}"
|
||||||
hx-push-url="true"
|
hx-push-url="true"
|
||||||
|
hx-swap-oob="beforeend"
|
||||||
style="cursor:pointer">
|
style="cursor:pointer">
|
||||||
<div class="card-image">
|
<div class="card-image">
|
||||||
<figure class="image is-4by3">
|
<figure class="image is-4by3">
|
||||||
|
|||||||
@ -14,6 +14,7 @@
|
|||||||
<a
|
<a
|
||||||
hx-get="/folders?path={{ urlquery .Name }}"
|
hx-get="/folders?path={{ urlquery .Name }}"
|
||||||
hx-target="#file-list"
|
hx-target="#file-list"
|
||||||
|
hx-swap-oob="beforeend"
|
||||||
hx-push-url="true"
|
hx-push-url="true"
|
||||||
class="{{ if eq $.CurrentPath .Name }}is-active{{ end }}"
|
class="{{ if eq $.CurrentPath .Name }}is-active{{ end }}"
|
||||||
>
|
>
|
||||||
@ -34,6 +35,7 @@
|
|||||||
hx-get="/folders"
|
hx-get="/folders"
|
||||||
hx-target="#file-list"
|
hx-target="#file-list"
|
||||||
hx-push-url="true"
|
hx-push-url="true"
|
||||||
|
hx-swap-oob="beforeend"
|
||||||
>
|
>
|
||||||
Home
|
Home
|
||||||
</a>
|
</a>
|
||||||
@ -48,6 +50,7 @@
|
|||||||
hx-get="/folders?path={{ urlquery (trimPrefix "/" $acc) }}"
|
hx-get="/folders?path={{ urlquery (trimPrefix "/" $acc) }}"
|
||||||
hx-target="#file-list"
|
hx-target="#file-list"
|
||||||
hx-push-url="true"
|
hx-push-url="true"
|
||||||
|
hx-swap-oob="beforeend"
|
||||||
>
|
>
|
||||||
{{ $p }}
|
{{ $p }}
|
||||||
</a>
|
</a>
|
||||||
@ -62,8 +65,9 @@
|
|||||||
hx-trigger="load"
|
hx-trigger="load"
|
||||||
hx-get="/folders?path={{ urlquery .CurrentPath }}"
|
hx-get="/folders?path={{ urlquery .CurrentPath }}"
|
||||||
hx-target="#file-list"
|
hx-target="#file-list"
|
||||||
|
hx-swap-oob="beforeend"
|
||||||
>
|
>
|
||||||
{{ template "_file_list.pages.tmpl" . }}
|
<!-- {{ template "_file_list.pages.tmpl" . }} -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user