summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authortardo <tardo@nagi-fanboi.net>2007-09-23 00:30:28 +0200
committertardo <tardo@nagi-fanboi.net>2007-09-23 00:30:28 +0200
commit9cba3937d0847d1065b3da7322ffe7ea22108319 (patch)
tree644db5484a5c7d9fe01b8de7b6a95f4f37fdfcff /web/lib
parent4548b0d08b592180bd4cd66ec127d0069f27c792 (diff)
downloadaur-9cba3937d0847d1065b3da7322ffe7ea22108319.tar.gz
aur-9cba3937d0847d1065b3da7322ffe7ea22108319.tar.xz
Cosmetic: Show flagged out of date on package page.
Add a simple warning under "Tarball :: Files :: PKGBUILD" if package is out of date. Signed-off-by: tardo <tardo@nagi-fanboi.net>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/pkgfuncs.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index 3bbfcb77..5cab8422 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -400,6 +400,10 @@ function package_details($id=0, $SID="") {
print "<span class='f6'>".__("Be careful! The above files may contain malicious code that can damage your system.")."</span></td>";
}
}
+ if ($row["OutOfDate"] == 1) {
+ print "\n<tr><td colspan='2'>";
+ print "<span class='f6'>".__("This package has been flagged out of date.")."</span></td></tr>";
+ }
print "<tr>\n";
print " <td class='boxSoft' colspan='2'><img src='/images/pad.gif' height='30'></td>";
print "</tr>\n";