summaryrefslogtreecommitdiffstats
path: root/web/template/stats/updates_table.php
blob: 93eb44f5eb0cb497db4be771ef3529801a1717ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<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.gif" alt="New!" />
				<?php endif; ?>
			</td>
			<td>
				<span><?php print gmdate("Y-m-d H:i", intval($row["ModifiedTS"])); ?></span>
			</td>
		</tr>
	<?php endforeach; ?>
</table>