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:
2010-08-13 20:04:57 +00:00
parent 9a199cd834
commit f3cd3b88b9
40 changed files with 756 additions and 228 deletions

View File

@@ -317,7 +317,7 @@ void dir_last_subject(Info & i)
HtmlEscape(i.out, request->dir_tab.back()->subject);
}
/*
void dir_last_info(Info & i)
{
if( static_cast<size_t>(locale.GetLang()) >= patterns.size() )
@@ -326,7 +326,7 @@ void dir_last_info(Info & i)
Ezc::Generator gen(i.out, patterns[locale.GetLang()][pat_dir_last_info], ezc_functions);
gen.Generate();
}
*/
void dir_last_user(Info & i)
{
@@ -388,6 +388,18 @@ void dir_last_dates_equal(Info & i)
}
void dir_last_html_template(Info & i)
{
HtmlEscape(i.out, request->dir_tab.back()->html_template);
}
void dir_last_has_html_template(Info & i)
{
i.res = !request->dir_tab.back()->html_template.empty();
}