moved some ezc functions from templates/item.cpp to Item and ItemContent

removed: templates/item.cpp
updated: some html templates which use [item] or [item_tab]
removed some old html templates: item_info.html and itam_tab_info.html
This commit is contained in:
2021-07-06 21:52:29 +02:00
parent 746aa41111
commit 9d65d931d0
24 changed files with 67 additions and 1297 deletions

View File

@@ -1,15 +1,9 @@
<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.has_write_access]<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]
<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[item.subject]</h2>
[item.content.print_content]
</div>
[end]
@@ -38,8 +32,7 @@
[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]
[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]
<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[item.subject]</h2>
[item.content.print_content]
</div>
[end]