mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Add timestamp when a package is flagged out-of-date (FS#20848).
Signed-off-by: Loui Chang <louipc.ist@gmail.com> - resolve conflict and omit i18n changes.
This commit is contained in:
parent
dbb8bb783f
commit
eda713032c
9 changed files with 24 additions and 13 deletions
|
@ -27,7 +27,7 @@
|
|||
echo " value='".__("UnNotify")."' title='".__("No New Comment Notification")."'> ";
|
||||
}
|
||||
|
||||
if ($row["OutOfDate"] == 0) {
|
||||
if ($row["OutOfDateTS"] === NULL) {
|
||||
echo "<input type='submit' class='button' name='do_Flag'";
|
||||
echo " value='".__("Flag Out-of-date")."'>\n";
|
||||
} else {
|
||||
|
|
|
@ -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"]));
|
||||
|
||||
?>
|
||||
<div class="pgbox">
|
||||
|
@ -69,8 +70,8 @@ $submitted_time = ($row["SubmittedTS"] == 0) ? $msg : gmdate("r", intval($row["S
|
|||
print "<a href='$urlpath.tar.gz'>".__("Tarball")."</a> :: <a href='$urlpath'>".__("Files")."</a> :: <a href='$urlpath/PKGBUILD'>PKGBUILD</a></span>";
|
||||
}
|
||||
|
||||
if ($row["OutOfDate"] == 1) {
|
||||
echo "<br /><span class='f6'>".__("This package has been flagged out of date.")."</span>";
|
||||
if ($row["OutOfDateTS"] !== NULL) {
|
||||
echo "<br /><span class='f6'>".__("This package has been flagged out of date.")." (${out_of_date_time})</span>";
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
|
|
|
@ -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;
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($SID): ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue