[# we can add a winix function called 'image_browser' or similar] [# such a function can be used for ckeditor and for ordinary browsing] [# !! IMPROVE ME: move this html code to a ckeditor template] [if winix_function_param_is "ckeditor_browse"]
[# workaround: margin from first item from child_dirs overflows here] [if child_dirs]
    [for child_dirs]
  • [if child_dirs.is_parent_for_current_dir] [# make sure the name of the textarea in fun_ckeditor.html is called: itemcontent] [# is it needed?] ../ [else] [child_dirs.url]/ [end]
  • [end]
[end]
[if items]
    [for items]
  • [items.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 request.is_item] [if winix_function_param_is "l"] [if one child_dirs items] [for child_dirs] [end] [for items] [end]
{ls_type} {ls_permissions} {ls_owner} {ls_group} {ls_name}
d [child_dirs.content.privileges_octal] [if child_dirs.content.has_user][child_dirs.content.user.login][end] [if child_dirs.content.has_group][child_dirs.content.group.name][end] [if child_dirs.is_parent_for_current_dir] ../ [else] [child_dirs.url]/ [end]
[if items.type_is_symlink]l[else][if items.content.has_static_file]s[else]-[end][end] [items.content.privileges_octal] [if items.content.has_user][items.content.user.login][end] [if items.content.has_group][items.content.group.name][end] [items.url][if items.type_is_symlink] -> [items.content.link_to][end]
[end] [else] [if child_dirs] [end] [# !! IMPROVE ME those two lists (above and below) can be combined together] [if items] [end] [end] [else] [#!! improve me: may it would be better to not use a list here?] [end] [end]