changed: now Request class is a model class - we have fields() method there to map fields for ezc templates (currently only dir_tab)

removed: [dir_tab] ezc statement
changed: Ls winix function loads its own dir_tab container (beforehand it was loaded by [dir_tab] ezc statement)
         it's available by [child_dirs] name
This commit is contained in:
2021-06-17 21:44:29 +02:00
parent 4db421d6c3
commit ebd791a256
11 changed files with 146 additions and 69 deletions

View File

@@ -204,7 +204,7 @@ void dir_level_is(Info & i)
/*
static std::vector<Item*> dir_childs_table;
static size_t dir_childs_index;
// cur->request->id is never 0 and we can start dir_childs_reqid from 0
@@ -298,12 +298,12 @@ void dir_childs_tab_group(Info & i)
i.out << group_id;
}
}
*/
/*
static size_t dir_index;
@@ -333,7 +333,6 @@ void dir_tab_link(Info & i)
}
}
void dir_tab_is_root(Info & i)
{
i.res = (dir_index == 0);
@@ -345,6 +344,7 @@ void dir_tab_subject(Info & i)
if( dir_index < cur->request->dir_tab.size() )
i.out << cur->request->dir_tab[dir_index]->subject;
}
*/
void dir_last_link_to(Info & i)