aurweb/web/template/stats/updates_table.php
canyonknight 36abb9efb9 Use the "new" icon from archweb for the recent updates table
Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2012-09-18 00:59:00 +02:00

19 lines
707 B
PHP

<h3><?php echo __("Recent Updates") ?></h3>
<a href="<?php echo get_uri('/rss/') ?>" title="Arch Package Updates RSS Feed" class="rss-icon"><img src="/images/feed-icon-14x14.png" alt="RSS Feed" /></a>
<table>
<?php foreach ($newest_packages->getIterator() as $row): ?>
<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.png" alt="New!" />
<?php endif; ?>
</td>
<td>
<span><?php print gmdate("Y-m-d H:i", intval($row["ModifiedTS"])); ?></span>
</td>
</tr>
<?php endforeach; ?>
</table>