From eda713032ce9bed773b6c927b2f6ac4b445fe577 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 6 Oct 2010 04:25:53 +0200 Subject: Add timestamp when a package is flagged out-of-date (FS#20848). Signed-off-by: Loui Chang - resolve conflict and omit i18n changes. --- web/template/actions_form.php | 2 +- web/template/pkg_details.php | 5 +++-- web/template/pkg_search_results.php | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'web/template') diff --git a/web/template/actions_form.php b/web/template/actions_form.php index d1559f57..41d8df9b 100644 --- a/web/template/actions_form.php +++ b/web/template/actions_form.php @@ -27,7 +27,7 @@ echo " value='".__("UnNotify")."' title='".__("No New Comment Notification")."'> "; } -if ($row["OutOfDate"] == 0) { +if ($row["OutOfDateTS"] === NULL) { echo "\n"; } else { diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 30d17e17..a4b8f954 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -35,6 +35,7 @@ $license = empty($row['License']) ? $msg : $row['License']; # Print the timestamps for last updates $updated_time = ($row["ModifiedTS"] == 0) ? $msg : gmdate("r", intval($row["ModifiedTS"])); $submitted_time = ($row["SubmittedTS"] == 0) ? $msg : gmdate("r", intval($row["SubmittedTS"])); +$out_of_date_time = ($row["OutOfDateTS"] == 0) ? $msg : gmdate("r", intval($row["OutOfDateTS"])); ?>
@@ -69,8 +70,8 @@ $submitted_time = ($row["SubmittedTS"] == 0) ? $msg : gmdate("r", intval($row["S print "".__("Tarball")." :: ".__("Files")." :: PKGBUILD"; } - if ($row["OutOfDate"] == 1) { - echo "
".__("This package has been flagged out of date.").""; + if ($row["OutOfDateTS"] !== NULL) { + echo "
".__("This package has been flagged out of date.")." (${out_of_date_time})"; } ?>

diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php index ab49c6b9..bf00da5a 100644 --- a/web/template/pkg_search_results.php +++ b/web/template/pkg_search_results.php @@ -46,7 +46,7 @@ $atype = account_from_sid($_COOKIE['AURSID']); for ($i = 0; $row = mysql_fetch_assoc($result); $i++) { (($i % 2) == 0) ? $c = "data1" : $c = "data2"; - if ($row["OutOfDate"]): $c = "outofdate"; endif; + if ($row["OutOfDateTS"] !== NULL): $c = "outofdate"; endif; ?> -- cgit v1.2.3-24-g4f1b