canManageTeam()) { $active_projects = ttTeamHelper::getActiveProjects($user->team_id); $inactive_projects = ttTeamHelper::getInactiveProjects($user->team_id); } else $active_projects = $user->getAssignedProjects(); $smarty->assign('active_projects', $active_projects); $smarty->assign('inactive_projects', $inactive_projects); $smarty->assign('title', $i18n->getKey('title.projects')); $smarty->assign('content_page_name', 'projects.tpl'); $smarty->display('index.tpl'); ?>