- added to Request: is_htmx_request (bool) - true if the request is made by htmx library (ajax)
- commented out using mount_page_arg_is "subject" and "info" from fun_cat.html and fun_run.html - they will be removed soon - some improvements in fun_reply.html, fun_showthreads.html and fun_thread.html (scrolling)
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
[if item_content_type_is "other"][item_print_content][else]
|
||||
|
||||
[if false]
|
||||
[if mount_page_arg_is "subject"][if mount_page_arg_is "info"]<h1 class="withinfo">[else]<h1>[end][item_subject]</h1>[end]
|
||||
[if mount_page_arg_is "info"][include "item_info.html"][end]
|
||||
|
||||
[end]
|
||||
|
||||
[if one item_filetype_is_image]
|
||||
|
||||
<a href="[item_link]"><img class="catimage" [if not item_has_thumb]height="100"[end] src="[item_link]/download[if item_has_thumb]/thumb[end]" alt="[item_subject]"></a>
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
<div class="winix">
|
||||
<div class="winix winix-thread-reply">
|
||||
|
||||
<h1>{thread_header_reply}</h1>
|
||||
|
||||
|
||||
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][item_url]/reply" [if winix_has_htmx]hx-post="[doc_base_url][dir][item_url]/reply"[end]>
|
||||
[# it would be better to have to 'item' objects: one for item_url and the other for item_content]
|
||||
[# this will be added when ezc will have its own objects templates]
|
||||
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][item_url]/reply" [if winix_has_htmx]hx-post="[doc_base_url][dir][item_url]/reply/scrolldown"[end]>
|
||||
|
||||
[if thread_mount_arg_is "subject"]
|
||||
<div class="uk-margin">
|
||||
@@ -26,7 +28,7 @@
|
||||
[if mount_type_is "thread"]<label for="winix_content_id">{form_emacs_content_thread}</label>[end]
|
||||
|
||||
<div class="uk-form-controls">
|
||||
<textarea class="uk-textarea" id="winix_content_id" rows="10" cols="60" name="itemcontent"></textarea>
|
||||
<textarea class="uk-textarea" id="winix_content_id" rows="10" cols="60" name="itemcontent">[item_content]</textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -74,3 +76,14 @@
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="winix-fake-div"></div>
|
||||
|
||||
[if any winix_has_htmx winix_is_htmx_request winix_has_uikit]
|
||||
<script>
|
||||
[# how does it work?]
|
||||
UIkit.scroll(".winix-fake-div").scrollTo(".winix-thread-reply");
|
||||
</script>
|
||||
[end]
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
[if item_content_type_is "other"][item_run][else]
|
||||
|
||||
<div>
|
||||
|
||||
|
||||
[if false]
|
||||
[if mount_page_arg_is "subject"]
|
||||
<h1>[item_subject]</h1>
|
||||
[end]
|
||||
@@ -9,6 +10,7 @@
|
||||
[if mount_page_arg_is "info"]
|
||||
[include "item_info.html"]
|
||||
[end]
|
||||
[end]
|
||||
|
||||
[item_run]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="winix winix-threads-list">
|
||||
<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]
|
||||
@@ -16,7 +16,7 @@
|
||||
<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]" hx-push-url="true"[end]>[thread_sort_tab_subject]</a></td> [# dodac sprawdzanie subject empty]
|
||||
<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>
|
||||
@@ -27,11 +27,3 @@
|
||||
|
||||
</div>
|
||||
|
||||
[if false]
|
||||
[if any winix_has_htmx winix_is_htmx_request winix_has_uikit]
|
||||
<script>
|
||||
[# fixme: not working in this way]
|
||||
UIkit.scroll(".winix-thread-link").scrollTo(".winix-threads-list");
|
||||
</script>
|
||||
[end]
|
||||
[end]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="winix">
|
||||
<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]
|
||||
@@ -55,4 +55,24 @@
|
||||
</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]
|
||||
|
||||
Reference in New Issue
Block a user