" . $userList . '';
+ echo "
" . $userList . "
";
+
+ $methodName = $this->app->getMethodName();
if($config->global->flow == 'full')
{
$label = "
{$lang->user->todo}";
- echo html::a($this->createLink('user', 'todo', "account=$account"), $label);
+ $active = $methodName == 'todo' ? ' btn-active-text' : '';
+ echo html::a($this->createLink('user', 'todo', "account=$account"), $label, '', "class='btn btn-link $active'");
}
if($config->global->flow != 'onlyTask' and $config->global->flow != 'onlyTest')
{
- echo html::a($this->createLink('user', 'story', "account=$account"), $lang->user->story);
+ $label = "
{$lang->user->story}";
+ $active = $methodName == 'story' ? ' btn-active-text' : '';
+ echo html::a($this->createLink('user', 'story', "account=$account"), $label, '', "class='btn btn-link $active'");
}
if($config->global->flow == 'full' or $config->global->flow == 'onlyTask')
{
- echo html::a($this->createLink('user', 'task', "account=$account"), $lang->user->task);
+ $label = "
{$lang->user->task}";
+ $active = $methodName == 'task' ? ' btn-active-text' : '';
+ echo html::a($this->createLink('user', 'task', "account=$account"), $label, '', "class='btn btn-link $active'");
}
if($config->global->flow == 'full' or $config->global->flow == 'onlyTest')
{
- echo html::a($this->createLink('user', 'bug', "account=$account"), $lang->user->bug);
- echo html::a($this->createLink('user', 'testtask', "account=$account"), $lang->user->test);
+ $label = "
{$lang->user->bug}";
+ $active = $methodName == 'bug' ? ' btn-active-text' : '';
+ echo html::a($this->createLink('user', 'bug', "account=$account"), $label, '', "class='btn btn-link $active'");
+
+ $label = "
{$lang->user->test}";
+ $active = $methodName == 'testtask' ? ' btn-active-text' : '';
+ echo html::a($this->createLink('user', 'testtask', "account=$account"), $label, '', "class='btn btn-link $active'");
}
- echo html::a($this->createLink('user', 'dynamic', "type=today&account=$account"), $lang->user->dynamic);
+
+ $label = "
{$lang->user->dynamic}";
+ $active = $methodName == 'dynamic' ? ' btn-active-text' : '';
+ echo html::a($this->createLink('user', 'dynamic', "type=today&account=$account"), $label, '', "class='btn btn-link $active'");
if($config->global->flow == 'full' or $config->global->flow == 'onlyTask')
{
- echo html::a($this->createLink('user', 'project', "account=$account"), $lang->user->project);
+ $label = "
{$lang->user->project}";
+ $active = $methodName == 'project' ? ' btn-active-text' : '';
+ echo html::a($this->createLink('user', 'project', "account=$account"), $label, '', "class='btn btn-link $active'");
}
- echo html::a($this->createLink('user', 'profile', "account=$account"), $lang->user->profile);
- $activedSpan = $this->app->getMethodName() . 'Tab';
- echo "";
+ $label = "
{$lang->user->profile}";
+ $active = $methodName == 'profile' ? ' btn-active-text' : '';
+ echo html::a($this->createLink('user', 'profile', "account=$account"), $label, '', "class='btn btn-link $active'");
?>