summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Korpel <marcel.korpel@gmail.com>2015-08-19 09:47:10 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-08-19 09:49:28 +0200
commit57250a164172672f26c763e8453855f74d72c191 (patch)
tree2935db1449e5d77b307c3897538a3e17a4a8b9a2
parente1f6de68a2faf585958823ccee35a4f6540c18b8 (diff)
updates_table.php: Fix identification of new packages
Currently, package creation has to be done separately from first submission, so ModifiedTS will never be the same as SubmittedTS. Consider all packages that are submitted within an hour from package creation as new. Signed-off-by: Marcel Korpel <marcel.korpel@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r--web/template/stats/updates_table.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/stats/updates_table.php b/web/template/stats/updates_table.php
index a4b31c5..775d707 100644
--- a/web/template/stats/updates_table.php
+++ b/web/template/stats/updates_table.php
@@ -10,7 +10,7 @@
<a href="<?= get_pkg_uri($row["Name"]); ?>" title="<?= htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]); ?>"><?= htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]); ?></a>
</td>
<td class="pkg-new">
- <?php if ($row["ModifiedTS"] === $row["SubmittedTS"]): ?>
+ <?php if ($row["ModifiedTS"] - $row["SubmittedTS"] < 3600): ?>
<img src="images/new.png" alt="New!" />
<?php endif; ?>
</td>