72 lines
2.3 KiB
HTML
72 lines
2.3 KiB
HTML
<div class="winix winix-thread">
|
|
|
|
[if not [thread_mount_arg_is "sort_desc"]]
|
|
<div class="uk-margin">
|
|
[if item.has_write_access]<a class="uk-button uk-button-default uk-button-small" href="[item.link]/emacs" rel="nofollow">{edit}</a>[end]
|
|
<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[item.subject]</h2>
|
|
[item.content.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.has_write_access]<a class="uk-button uk-button-default uk-button-small" href="[item.link]/emacs" rel="nofollow">{edit}</a>[end]
|
|
<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[item.subject]</h2>
|
|
[item.content.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]
|