[aur-dev] [PATCH 04/13] Add the new package icon back to the front page
canyonknight
canyonknight at gmail.com
Sat Sep 15 12:38:09 EDT 2012
This regression was introduced with d2480e8b9d3d0f946d57fa9422811cb37296b8b4.
Re-implement the functionality in a cleaner way.
Signed-off-by: canyonknight <canyonknight at gmail.com>
---
web/template/stats/updates_table.php | 3 +++
1 file changed, 3 insertions(+)
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>
--
1.7.12
More information about the aur-dev
mailing list