Просмотр исходного кода

Add "Retests" icon to dashboard

Alan Lam 3 лет назад
Родитель
Сommit
8e3dfaab75
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      controllers/account.php

+ 4 - 1
controllers/account.php

@@ -168,10 +168,13 @@ if($user->canAccessTests()) {
 	$tests_remaining = count($tests);
 
 	$tests_url = $user->isTesterManager() ? "/account/tests?custom=overdue_test" : "/account/tests";
+
 	$tests_icon = new AccountIcon(__("Tests"), $tests_url, "clipboard-check");
 	$tests_icon->setCounter($tests_remaining);
-
 	$icons[] = $tests_icon;
+
+	$retests_icon = new AccountIcon(__("Retests"), "/account/tests?retest=1", "clipboard-check");
+	$icons[] = $retests_icon;
 }
 
 if($user->canAccessPractice()) {