mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
* Sync the sidebar layout with archweb, use the "pkg-name" class to wrap long package names. * Move the "New!" logo to a separate column to make sure it isn't wrapped to a new line on its own. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
23 lines
778 B
PHP
23 lines
778 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>
|
|
<tbody>
|
|
<?php foreach ($newest_packages->getIterator() as $row): ?>
|
|
<tr>
|
|
<td class="pkg-name">
|
|
<a href="<?php echo get_pkg_uri($row["Name"]); ?>"><?php print htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]); ?></a>
|
|
</td>
|
|
<td class="pkg-new">
|
|
<?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; ?>
|
|
</tbody>
|
|
</table>
|