summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-09-19 01:17:32 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-09-19 01:17:32 +0200
commit7c004693f720eafd3013119bb290cbd5ccdbda60 (patch)
treeae62f0136cc0f7da42dfdcf201e10a6f1ba16cba /web
parent3b1dad229b6b486efc31c72090a8985773c329bb (diff)
downloadaurweb-7c004693f720eafd3013119bb290cbd5ccdbda60.tar.xz
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: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web')
-rw-r--r--web/html/css/aur.css4
-rw-r--r--web/template/stats/updates_table.php10
2 files changed, 11 insertions, 3 deletions
diff --git a/web/html/css/aur.css b/web/html/css/aur.css
index 741446e..de661fc 100644
--- a/web/html/css/aur.css
+++ b/web/html/css/aur.css
@@ -2,3 +2,7 @@
#lang_sub {
float: right;
}
+
+#pkg-updates td.pkg-new {
+ padding: 0 .5em;
+}
diff --git a/web/template/stats/updates_table.php b/web/template/stats/updates_table.php
index e7ceec7..2220d6a 100644
--- a/web/template/stats/updates_table.php
+++ b/web/template/stats/updates_table.php
@@ -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>
<table>
- <?php foreach ($newest_packages->getIterator() as $row): ?>
+ <tbody>
+ <?php foreach ($newest_packages->getIterator() as $row): ?>
<tr>
- <td>
+ <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; ?>
@@ -15,5 +18,6 @@
<span><?php print gmdate("Y-m-d H:i", intval($row["ModifiedTS"])); ?></span>
</td>
</tr>
- <?php endforeach; ?>
+ <?php endforeach; ?>
+ </tbody>
</table>