winix/winixd/html/fun_thread.html

79 lines
2.7 KiB
HTML

<div class="winix winix-thread">
[if mount_page_arg_is "subject"]<h1[if mount_page_arg_is "info"] class="winix_withinfo"[end]>[item_subject]</h1>[end]
[if false]
[if mount_page_arg_is "info"][include "item_info.html"][end]
[end]
[if not [thread_mount_arg_is "sort_desc"]]
<div class="uk-margin">
[if item_can_write]<a class="uk-button uk-button-default uk-button-small" href="[item_link]/emacs" rel="nofollow">{edit}</a>[end]
[if thread_mount_arg_is "subject"]<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[item_subject]</h2>[end]
[if thread_mount_arg_is "info"][include "item_info.html"][end]
[item_print_content]
</div>
[end]
[if thread_mount_arg_is "sort_desc"]
[if thread_can_reply]
<div class="uk-margin">
<a class="uk-button uk-button-primary" href="[doc_base_url][dir][item_url]/reply" rel="nofollow" [if winix_has_htmx]hx-get="[doc_base_url][dir][item_url]/reply" hx-swap="outerHTML" hx-target="this"[end]>{thread_reply_in_this_thread}</a>
</div>
[end]
[end]
[for thread_sort_tab]
<div class="uk-margin [if index "odd"]uk-tile-default[else]uk-tile-muted uk-padding-small[end]">
[if thread_sort_tab_can_write]<a class="uk-button uk-button-default uk-button-small" href="[thread_sort_tab_link]/emacs" rel="nofollow">{edit}</a>[end]
[if thread_mount_arg_is "subject"]<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[thread_sort_tab_subject]</h2>[end]
[if thread_mount_arg_is "info"][include "thread_sort_tab_info.html"][end]
[thread_sort_tab_print_content]
</div>
[end]
[if thread_mount_arg_is "sort_desc"]
<div class="uk-margin">
[if item_can_write]<a class="uk-button uk-button-default uk-button-small" href="[item_link]/emacs" rel="nofollow">{edit}</a>[end]
[if thread_mount_arg_is "subject"]<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[item_subject]</h2>[end]
[if thread_mount_arg_is "info"][include "item_info.html"][end]
[item_print_content]
</div>
[end]
[if not [thread_mount_arg_is "sort_desc"]]
[if thread_can_reply]
<div class="uk-margin">
<a class="uk-button uk-button-primary" href="[doc_base_url][dir][item_url]/reply" rel="nofollow" [if winix_has_htmx]hx-get="[doc_base_url][dir][item_url]/reply" hx-swap="outerHTML" hx-target="this"[end]>{thread_reply_in_this_thread}</a>
</div>
[end]
[end]
</div>
[if winix_function_param_is "scrolltop"]
<div class="winix-fake-div"></div>
[if winix_has_uikit]
<script>
[# how does it work?]
UIkit.scroll(".winix-fake-div").scrollTo(".winix-thread");
</script>
[end]
[end]
[if winix_function_param_is "scrolldown"]
<div class="winix-fake-div"></div>
[if winix_has_uikit]
<script>
[# how does it work?]
UIkit.scroll(".winix-fake-div").scrollTo(".winix-fake-div");
</script>
[end]
[end]