aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2009-08-28 22:16:24 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2009-08-28 22:16:24 +0000
commitb130a17993b0fa1c0a9784923b4fa6bfc36e7b88 (patch)
tree9f09bdd139b715ac740252b7a9a273964010893a
parentSplit arches into a seperate element first. (diff)
downloadpackages-b130a17993b0fa1c0a9784923b4fa6bfc36e7b88.tar.gz
packages-b130a17993b0fa1c0a9784923b4fa6bfc36e7b88.tar.bz2
packages-b130a17993b0fa1c0a9784923b4fa6bfc36e7b88.zip
Add scrollbars for overflowing arches on prefix/all.
-rw-r--r--web/templates/layout.html21
1 files changed, 19 insertions, 2 deletions
diff --git a/web/templates/layout.html b/web/templates/layout.html
index 6e93caa..01d3d0a 100644
--- a/web/templates/layout.html
+++ b/web/templates/layout.html
@@ -188,8 +188,24 @@ def alpha_url(baseurl):
<p class="package"><a href="${relurl('/package/'+pkg.atom.key)}">${pkg.atom.cpvstr}</a></p>
<p class="description">${pkg.meta.description}</p>
<div class="changelogmsg">${HTML(pkg.meta.commitmsg)}</div>
- <!-- <pkginfo /> -->
- <pkgarches />
+ <!-- <pkgarches> -->
+ <div style="overflow-x: auto">
+ <table class="main">
+ <tr class="d0 arch">
+ <td class="emptycell"></td>
+ <td class="d0 arch" py:for="arch in sorted(arches)">${arch}</td>
+ </tr>
+ <tr py:for="pkg_keywords in pkg.keywords">
+ <td class="ebuild">${pkg_keywords.atom.fullver}</td>
+ <div py:for="arch in sorted(arches)" py:strip="True">
+ <td py:if="arch not in pkg_keywords" class="blank"></td>
+ <td py:if="arch in pkg_keywords" class="${pkg_keywords[arch].name}">${pkg_keywords[arch].mode}</td>
+ </div>
+ </tr>
+ </table>
+ </div>
+ <!-- </pkgarches> -->
+ <!-- <pkginfo> -->
<table class="pkginfo">
<tr>
<td class="category"><a href="${relurl('/category/'+pkg.meta.atom.category)}">${pkg.meta.atom.category}</a></td>
@@ -201,6 +217,7 @@ def alpha_url(baseurl):
<td class="forums" ><a href="${pkg.forums}">Forums</a></td>
</tr>
</table>
+ <!-- </pkginfo> -->
</div>
</py:match>
</html>