[# !! IMPROVE ME: move this html code to a ckeditor template] [if winix_function_param_is "ckeditor_browse"]
[if dir_childs_tab "with_parent"]
    [for dir_childs_tab "with_parent"]
  • [if dir_childs_is_parent] [# make sure the name of the textarea in fun_ckeditor.html is called: itemcontent] [# is it needed?] ../ [else] [dir_childs_tab_url]/ [end]
  • [end]
[end]
[if item_tab]
    [for item_tab]
  • [item_tab_subject]
  • [end]
[else]

{ls_no_picture}

[end]
[else]

{ls_header}

[# !! improve me: we need a 'l' flag to a file too, now it's working for dirs only] [if not item_is] [if winix_function_param_is "l"] [# loading dir childs table with a parent directory] [# now the parameter can be passed directly to if-one] [dir_childs_tab "with_parent"] [if one dir_childs_tab item_tab] [for dir_childs_tab] [end] [for item_tab] [end]
{ls_type} {ls_permissions} {ls_owner} {ls_group} {ls_name}
d [dir_childs_tab_privileges] [dir_childs_tab_user] [dir_childs_tab_group] [if dir_childs_is_parent] ../ [else] [dir_childs_tab_url]/ [end]
[if item_tab_type_is_symlink]l[else][if item_tab_has_static_file]s[else]-[end][end] [item_tab_privileges] [item_tab_user] [item_tab_group] [item_tab_url][if item_tab_type_is_symlink] -> [item_tab_link_to][end]
[end] [else] [# loading dir childs table with a parent directory] [dir_childs_tab "with_parent"] [if dir_childs_tab] [end] [# !! IMPROVE ME those two lists (above and below) can be combined together] [if item_tab] [end] [end] [else] [#!! improve me: may it would be better to not use a list here?] [end] [end]