Procházet zdrojové kódy

Add support for "past due" markers in Map Overview

Alan Lam před 8 roky
rodič
revize
e43b8f8781

+ 7 - 0
controllers/map_overview_ajax.php

@@ -55,8 +55,15 @@ if($submit) {
 					$icon_file = "{$customer_slug}_none.png";
 
 					if($test) {
+
+						$unix_due = Util::getUnixTimeFromUTC($test->dts_due);
+
 						if(is_null($test->pass)) {
 							$icon_file = "{$customer_slug}_pending.png";
+
+							if(time() > $unix_due) {
+								$icon_file = "{$customer_slug}_past_due.png";
+							}
 						}
 						else if($test->pass) {
 							$icon_file = "{$customer_slug}_pass.png";

binární
public/img/markers/bacta_past_due.png


binární
public/img/markers/praesepe_past_due.png