added: issues ticket system
added functions: ticket, createticket, editticket (there is no 'rm' function working for tickets yet) changed: mount parser and mount points now we have more parameters (arguments in parameters) some refactoring in functions 'emacs' and 'mkdir' git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@554 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -16,40 +16,44 @@ namespace TemplatesFunctions
|
||||
{
|
||||
|
||||
|
||||
void mount_param_withheader(Info & i)
|
||||
|
||||
|
||||
void mount_page_is(Info & i)
|
||||
{
|
||||
i.result = data.mounts.CurrentMountIsParam(Mount::withheader);
|
||||
if( !i.is )
|
||||
return;
|
||||
|
||||
i.result = data.mounts.pmount->IsArg(Mount::par_page, *i.is);
|
||||
}
|
||||
|
||||
void mount_thread_is(Info & i)
|
||||
{
|
||||
if( !i.is )
|
||||
return;
|
||||
|
||||
i.result = data.mounts.pmount->IsArg(Mount::par_thread, *i.is);
|
||||
}
|
||||
|
||||
|
||||
void mount_type_is_thread(Info & i)
|
||||
{
|
||||
i.result = data.mounts.pmount->type == Mount::thread;
|
||||
}
|
||||
|
||||
|
||||
void mount_type_is_ticket(Info & i)
|
||||
{
|
||||
i.result = data.mounts.pmount->type == Mount::ticket;
|
||||
}
|
||||
|
||||
|
||||
void mount_type_is_cms(Info & i)
|
||||
{
|
||||
i.result = data.mounts.pmount->type == Mount::cms;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void mount_param_withinfo(Info & i)
|
||||
{
|
||||
i.result = data.mounts.CurrentMountIsParam(Mount::withinfo);
|
||||
}
|
||||
|
||||
|
||||
void mount_param_thread_with_header(Info & i)
|
||||
{
|
||||
i.result = data.mounts.CurrentMountIsParam(Mount::thread_with_header);
|
||||
}
|
||||
|
||||
|
||||
void mount_param_thread_with_info(Info & i)
|
||||
{
|
||||
i.result = data.mounts.CurrentMountIsParam(Mount::thread_with_info);
|
||||
}
|
||||
|
||||
|
||||
void mount_is_thread(Info & i)
|
||||
{
|
||||
i.result = data.mounts.CurrentMountType() == Mount::thread;
|
||||
}
|
||||
|
||||
void mount_is_cms(Info & i)
|
||||
{
|
||||
i.result = data.mounts.CurrentMountType() == Mount::cms;
|
||||
}
|
||||
|
||||
} // namespace TemplatesFunctions
|
||||
|
||||
|
Reference in New Issue
Block a user