2021-05-31 10:58:34 +02:00
|
|
|
<div class="winix winix-thread">
|
2012-10-17 08:00:00 +02:00
|
|
|
|
2015-03-09 00:22:05 +01:00
|
|
|
[if not [thread_mount_arg_is "sort_desc"]]
|
2021-02-16 19:44:57 +01:00
|
|
|
<div class="uk-margin">
|
2021-06-20 18:12:43 +02:00
|
|
|
[if item.has_write_access]<a class="uk-button uk-button-default uk-button-small" href="[item.link]/emacs" rel="nofollow">{edit}</a>[end]
|
2021-07-06 21:52:29 +02:00
|
|
|
<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[item.subject]</h2>
|
2021-06-20 18:12:43 +02:00
|
|
|
[item.content.print_content]
|
2011-01-24 00:23:24 +01:00
|
|
|
</div>
|
|
|
|
[end]
|
2010-01-28 16:39:01 +01:00
|
|
|
|
2021-02-12 18:57:14 +01:00
|
|
|
[if thread_mount_arg_is "sort_desc"]
|
|
|
|
[if thread_can_reply]
|
|
|
|
<div class="uk-margin">
|
2021-06-20 18:12:43 +02:00
|
|
|
<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>
|
2021-02-12 18:57:14 +01:00
|
|
|
</div>
|
|
|
|
[end]
|
|
|
|
[end]
|
|
|
|
|
2010-02-16 01:37:00 +01:00
|
|
|
|
2011-01-20 19:37:51 +01:00
|
|
|
[for thread_sort_tab]
|
2021-02-12 18:57:14 +01:00
|
|
|
<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]
|
2012-10-17 08:00:00 +02:00
|
|
|
[if thread_mount_arg_is "subject"]<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[thread_sort_tab_subject]</h2>[end]
|
2011-01-24 00:23:24 +01:00
|
|
|
[if thread_mount_arg_is "info"][include "thread_sort_tab_info.html"][end]
|
2011-01-20 19:37:51 +01:00
|
|
|
[thread_sort_tab_print_content]
|
|
|
|
</div>
|
2010-01-28 16:39:01 +01:00
|
|
|
[end]
|
2010-01-26 20:02:21 +01:00
|
|
|
|
2021-02-12 18:57:14 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-01-24 00:23:24 +01:00
|
|
|
[if thread_mount_arg_is "sort_desc"]
|
2021-02-16 19:44:57 +01:00
|
|
|
<div class="uk-margin">
|
2021-06-20 18:12:43 +02:00
|
|
|
[if item.has_write_access]<a class="uk-button uk-button-default uk-button-small" href="[item.link]/emacs" rel="nofollow">{edit}</a>[end]
|
2021-07-06 21:52:29 +02:00
|
|
|
<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[item.subject]</h2>
|
2021-06-20 18:12:43 +02:00
|
|
|
[item.content.print_content]
|
2011-01-24 00:23:24 +01:00
|
|
|
</div>
|
|
|
|
[end]
|
2010-01-26 20:02:21 +01:00
|
|
|
|
2021-02-12 18:57:14 +01:00
|
|
|
[if not [thread_mount_arg_is "sort_desc"]]
|
|
|
|
[if thread_can_reply]
|
|
|
|
<div class="uk-margin">
|
2021-06-20 18:12:43 +02:00
|
|
|
<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>
|
2021-02-12 18:57:14 +01:00
|
|
|
</div>
|
|
|
|
[end]
|
|
|
|
[end]
|
2010-01-26 20:02:21 +01:00
|
|
|
|
2012-10-17 08:00:00 +02:00
|
|
|
</div>
|
|
|
|
|
2021-05-28 18:36:19 +02:00
|
|
|
|
2021-05-31 10:58:34 +02:00
|
|
|
[if winix_function_param_is "scrolltop"]
|
|
|
|
<div class="winix-fake-div"></div>
|
2021-05-28 18:36:19 +02:00
|
|
|
|
2021-05-31 10:58:34 +02:00
|
|
|
[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]
|