Commit 7c004693 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Wrap long lines in the "Recent Updates" sidebar

* 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: default avatarLukas Fleischer <>
parent 3b1dad22
......@@ -2,3 +2,7 @@
#lang_sub {
float: right;
#pkg-updates td.pkg-new {
padding: 0 .5em;
......@@ -3,10 +3,13 @@
<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>
<?php foreach ($newest_packages->getIterator() as $row): ?>
<?php foreach ($newest_packages->getIterator() as $row): ?>
<td class="pkg-name">
<a href="<?php echo get_pkg_uri($row["Name"]); ?>"><?php print htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]); ?></a>
<td class="pkg-new">
<?php if ($row["ModifiedTS"] === $row["SubmittedTS"]): ?>
<img src="images/new.png" alt="New!" />
<?php endif; ?>
......@@ -15,5 +18,6 @@
<span><?php print gmdate("Y-m-d H:i", intval($row["ModifiedTS"])); ?></span>
<?php endforeach; ?>
<?php endforeach; ?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment