diff --git a/winixd/functions/ls.cpp b/winixd/functions/ls.cpp index 500525b..9b01de3 100644 --- a/winixd/functions/ls.cpp +++ b/winixd/functions/ls.cpp @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2008-2018, Tomasz Sowa + * Copyright (c) 2008-2021, Tomasz Sowa * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -52,6 +52,13 @@ Ls::Ls() void Ls::MakeGet() { + // !! IMPROVE ME + // this should be moved to ckeditor function (similarly the html content from fun_ls.html) + if( cur->request->IsParam(L"ckeditor_browse") ) + { + cur->request->index_template = config->templates_index_generic; + } + if( !cur->request->is_item ) { DbItemQuery iq; diff --git a/winixd/html/fun_ls.html b/winixd/html/fun_ls.html index 1826445..f0e883b 100644 --- a/winixd/html/fun_ls.html +++ b/winixd/html/fun_ls.html @@ -1,24 +1,40 @@ -
- +
+[# !! 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_tab][dir_tab_url]/[end]

- -
    +
      [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]/ + [dir_childs_tab_url]/ [end]
    • [end] @@ -27,15 +43,14 @@
-
+
[if item_tab] - -

{ls_pictures_in_dir} [dir]

-
    + +
      [for item_tab] -
    • [item_tab_subject]
    • +
    • [item_tab_subject]
    • [end]
    @@ -44,11 +59,12 @@ [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"] @@ -59,7 +75,15 @@ [if one dir_childs_tab item_tab] - +
+ + + + + + + + [for dir_childs_tab] @@ -95,7 +119,7 @@ [dir_childs_tab "with_parent"] [if dir_childs_tab] -
    +
      [for dir_childs_tab]
    • [if dir_childs_is_parent] @@ -107,9 +131,9 @@ [end]
    [end] - + [# !! IMPROVE ME those two lists (above and below) can be combined together [if item_tab] -
      +
        [for item_tab]
      • [item_tab_url]
      • [end] @@ -120,8 +144,9 @@ [else] -
          -
        • [item_url]
        • + [!! improve me: may it would be better to not use a list here?] + [end] diff --git a/winixd/locale/en b/winixd/locale/en index f710efe..cd7b52a 100644 --- a/winixd/locale/en +++ b/winixd/locale/en @@ -171,8 +171,13 @@ last_none = There is no anything information. ls_header = Directory listing -ls_pictures_in_dir = Pictures in directory ls_no_picture = There are not any pictures in this directory +ls_type = Type +ls_permissions = Permissions +ls_owner = Owner +ls_group = Group +ls_name = Name +ls_root_dir_name = Root dir ipban_header = IP Banned ipban_col_id = Id @@ -418,6 +423,7 @@ mv_dir_content_can_be_moved_to_dir = Directory content can be moved only to an o mv_cannot_move_to_inside = A directory cannot be moved to inside it mv_incorrect_dst_path = Incorrect destination path mv_incorrect_dir = Incorrect directory +mv_file_exists = Such file already exists timezone_header = Time Zone diff --git a/winixd/locale/pl b/winixd/locale/pl index 5201eaf..7a20268 100644 --- a/winixd/locale/pl +++ b/winixd/locale/pl @@ -175,9 +175,13 @@ last_none = Nie ma dostępnych żadnych informacji. ls_header = Zawartość katalogu -ls_pictures_in_dir = Obrazy w katalogu ls_no_picture = W tym katalogu nie ma żadnego obrazu - +ls_type = Typ +ls_permissions = Uprawnienia +ls_owner = Właściciel +ls_group = Grupa +ls_name = Nazwa +ls_root_dir_name = Katalog główny ipban_header = Lista zbanowanych adresów IP ipban_col_id = L.p. @@ -438,7 +442,7 @@ mv_dir_content_can_be_moved_to_dir = Zawartość katalogu może zostać przenies mv_cannot_move_to_inside = Nie mogę przenieść katalogu do jego środka mv_incorrect_dst_path = Nieprawidłowa ścieżka docelowa mv_incorrect_dir = Nieprawidłowy katalog - +mv_file_exists = Podany plik już istnieje timezone_header = Strefa czasowa timezone_select = Wybierz swoją strefę czasową
{ls_type}{ls_permissions}{ls_owner}{ls_group}{ls_name}
d