winix/winixd/html/fun_showthreads.html

30 lines
1.2 KiB
HTML

<div class="winix">
[if mount_page_arg_is "subject"]<h1[if mount_page_arg_is "info"] class="withinfo"[end]>[dir_last_subject]</h1>[end]
[if mount_page_arg_is "info"][include "dir_last_info.html"][end]
[if thread_can_create]
<div class="uk-margin">
<a class="uk-button uk-button-primary" href="[doc_base_url][dir]createthread" rel="nofollow" [if winix_has_htmx]hx-get="[doc_base_url][dir]createthread" hx-swap="outerHTML" hx-target="this"[end]>{thread_create_new}</a>
</div>
[end]
[if thread_sort_tab]
<table class="uk-table uk-table-divider uk-table-small uk-table-responsive">
<tr><th>{thread_tab_title}</th><th>{thread_tab_author}</th><th>{thread_tab_replies}</th><th>{thread_tab_last_post}</th></tr>
[for thread_sort_tab]
<tr>
<td><a class="winix-thread-link" href="[doc_base_url][dir][thread_sort_tab_url]" [if winix_has_htmx]hx-get="[doc_base_url][dir][thread_sort_tab_url]/-/scrolltop" hx-push-url="true"[end]>[thread_sort_tab_subject]</a></td> [# dodac sprawdzanie subject empty]
<td>[thread_sort_tab_user]</td><td class="smallfont">[thread_sort_tab_replies]</td>
<td>[thread_sort_tab_last_item_date_modification_nice] ([thread_sort_tab_last_item_user])</td>
</tr>
[end]
</table>
[end]
</div>