From 05007d8b1a0a9c0b8371a7f5a0bcf5e8d240956a Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 7 Feb 2017 08:29:53 +0100 Subject: pkgreq_results.php: Split out package results box Do not include the wrapper div container in the template. Signed-off-by: Lukas Fleischer --- web/html/pkgreq.php | 2 + web/template/pkgreq_results.php | 238 ++++++++++++++++++++-------------------- 2 files changed, 120 insertions(+), 120 deletions(-) diff --git a/web/html/pkgreq.php b/web/html/pkgreq.php index 8348a4f3..e0ef6cfd 100644 --- a/web/html/pkgreq.php +++ b/web/html/pkgreq.php @@ -77,7 +77,9 @@ if (isset($base_id)) { $SID = $_COOKIE['AURSID']; html_header(__("Requests")); + echo '
'; include('pkgreq_results.php'); + echo '
'; } html_footer(AURWEB_VERSION); diff --git a/web/template/pkgreq_results.php b/web/template/pkgreq_results.php index 426c7f08..bd4fc6b9 100644 --- a/web/template/pkgreq_results.php +++ b/web/template/pkgreq_results.php @@ -1,129 +1,127 @@ -
-
-

- - -

- 1): ?> -

- $pagestart): ?> - - - - - - - - -

- -
+
+

+ + +

+ 1): ?> +

+ $pagestart): ?> + + + + + + + + +

+ +
- - - - - - - - - - - - +
+ + + + + + + + + + + - - $idle_time); - if (!$due) { - $time_left = $idle_time - (time() - intval($row['RequestTS'])); - if ($time_left > 48 * 3600) { - $time_left_fmt = _n("~%d day left", "~%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"); - } + + $idle_time); + if (!$due) { + $time_left = $idle_time - (time() - intval($row['RequestTS'])); + if ($time_left > 48 * 3600) { + $time_left_fmt = _n("~%d day left", "~%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"); } - ?> - - - - - - - - - - + } + ?> + + + + + + + + - - class="flagged"> - - - - - - - - - - - + + + + + + + class="flagged"> + + - + + + + + + + + + + + + + + + - -
"> - - - () - -
"> + + + () - - - - - - -
- - -
- -
- - - -
- - () -
- - - -
+ + + + + +
+ + +
+ +
+ + + +
+ + () +
-
+ + -
-

- - -

- 1): ?> -

- $pagestart): ?> - - - - - - - - -

- -
+
+

+ + +

+ 1): ?> +

+ $pagestart): ?> + + + + + + + + +

+
-- cgit v1.2.3-24-g4f1b