some improvement in templates
(now we have O(1) time for selecting the right html template) added: winix function: template for selecting a template for an item (file or dir) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@636 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -218,7 +218,7 @@ void item_can_remove(Info & i)
|
||||
i.res = system->HasWriteAccess(*request->dir_tab.back());
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
void item_info(Info & i)
|
||||
{
|
||||
if( static_cast<size_t>(locale.GetLang()) >= patterns.size() )
|
||||
@@ -227,7 +227,7 @@ void item_info(Info & i)
|
||||
Ezc::Generator gen(i.out, patterns[locale.GetLang()][pat_item_info], ezc_functions);
|
||||
gen.Generate();
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
void item_user(Info & i)
|
||||
{
|
||||
@@ -325,6 +325,18 @@ void item_guest_name(Info & i)
|
||||
}
|
||||
|
||||
|
||||
void item_html_template(Info & i)
|
||||
{
|
||||
HtmlEscape(i.out, request->item.html_template);
|
||||
}
|
||||
|
||||
|
||||
void item_has_html_template(Info & i)
|
||||
{
|
||||
i.res = !request->item.html_template.empty();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -456,7 +468,7 @@ void item_tab_can_write(Info & i)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
void item_tab_info(Info & i)
|
||||
{
|
||||
if( static_cast<size_t>(locale.GetLang()) >= patterns.size() )
|
||||
@@ -465,7 +477,7 @@ void item_tab_info(Info & i)
|
||||
Ezc::Generator gen(i.out, patterns[locale.GetLang()][pat_item_tab_info], ezc_functions);
|
||||
gen.Generate();
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
void item_tab_user(Info & i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user