|
|
@@ -6,6 +6,7 @@ Core::addBreadcrumb("/account", $page_title);
|
|
|
|
|
|
$users_pending_verification = 0;
|
|
|
$tests_pending_verification = 0;
|
|
|
+$tests_remaining = 0;
|
|
|
|
|
|
$links = [];
|
|
|
|
|
|
@@ -30,6 +31,10 @@ if(Core::$user->level >= User::LEVEL_CUSTOMER) {
|
|
|
if(Core::$user->level >= User::LEVEL_TESTER) {
|
|
|
$links["/account/tests"] = "Tests";
|
|
|
$links["/account/practice"] = "Practice";
|
|
|
+
|
|
|
+ $tests = Core::$user->getPendingTests();
|
|
|
+ $tests_remaining = count($tests);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
if(Core::$user->level == User::LEVEL_TESTER) {
|
|
|
@@ -62,7 +67,7 @@ $actions["/account/delete"] = "Delete Account...";
|
|
|
$referrals = Core::$user->getReferrals();
|
|
|
|
|
|
View::includeOnce("header", compact("page_title"));
|
|
|
-View::include("account", compact("links", "actions", "referrals", "users_pending_verification", "tests_pending_verification"));
|
|
|
+View::include("account", compact("links", "actions", "referrals", "users_pending_verification", "tests_pending_verification", "tests_remaining"));
|
|
|
View::includeOnce("footer");
|
|
|
|
|
|
?>
|