summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-09-09 14:59:15 -0400
committerLukas Fleischer <archlinux@cryptocrack.de>2012-09-18 00:58:58 +0200
commit66fe10df633275beaaf405452dd3fa061e2946ae (patch)
tree791cef9bbb2b3683f952d3e1f44d174623d479e6
parentc133826a7c00bd62c5dca890d5e0fd882e689e57 (diff)
Add the new package icon back to the front page
This regression was introduced with d2480e8b9d3d0f946d57fa9422811cb37296b8b4. Re-implement the functionality in a cleaner way. Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--web/template/stats/updates_table.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/template/stats/updates_table.php b/web/template/stats/updates_table.php
index 4955ddc..93eb44f 100644
--- a/web/template/stats/updates_table.php
+++ b/web/template/stats/updates_table.php
@@ -7,6 +7,9 @@
<tr>
<td>
<a href="<?php echo get_pkg_uri($row["Name"]); ?>"><?php print htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]); ?></a>
+ <?php if ($row["ModifiedTS"] === $row["SubmittedTS"]): ?>
+ <img src="images/new.gif" alt="New!" />
+ <?php endif; ?>
</td>
<td>
<span><?php print gmdate("Y-m-d H:i", intval($row["ModifiedTS"])); ?></span>