Add the new package icon back to the front page

This regression was introduced with d2480e8b9d.
Re-implement the functionality in a cleaner way.

Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
canyonknight 2012-09-09 14:59:15 -04:00 committed by Lukas Fleischer
parent c133826a7c
commit 66fe10df63

View file

@ -7,6 +7,9 @@
<tr> <tr>
<td> <td>
<a href="<?php echo get_pkg_uri($row["Name"]); ?>"><?php print htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]); ?></a> <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>
<td> <td>
<span><?php print gmdate("Y-m-d H:i", intval($row["ModifiedTS"])); ?></span> <span><?php print gmdate("Y-m-d H:i", intval($row["ModifiedTS"])); ?></span>