diff --git a/web/template/pkgreq_results.php b/web/template/pkgreq_results.php index 5e64476e..3d50c820 100644 --- a/web/template/pkgreq_results.php +++ b/web/template/pkgreq_results.php @@ -33,6 +33,19 @@ + $REQUEST_IDLE_TIME); + if (!$due) { + $time_left = $REQUEST_IDLE_TIME - (time() - intval($row['RequestTS'])); + if ($time_left > 48 * 3600) { + $time_left_fmt = __("~%d days left", round($time_left / (24 * 3600))); + } elseif ($time_left > 3600) { + $time_left_fmt = _n("~%d hour left", "~%d hours left", round($time_left / 3600)); + } else { + $time_left_fmt = __("<1 hour left"); + } + } + ?> "> @@ -53,7 +66,7 @@ - $REQUEST_IDLE_TIME): ?> class="flagged"> + class="flagged"> @@ -63,12 +76,15 @@
- +
+ + () +