summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-06-04 23:30:16 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-06-05 15:12:10 +0200
commit13820d2b168e96efa83aa04aab3e5a06c97fe78b (patch)
tree0d718bca63a47e4b17a29b50b0cb77da2f89a79a
parentb30bb6f534e20f0a93a08c129ec41f7cc87e440a (diff)
downloadaurweb-13820d2b168e96efa83aa04aab3e5a06c97fe78b.tar.xz
Collapse long source lists
In commit e582cfe (Collapse long dependency lists, 2014-04-18), we added code to automatically collapse dependency and requirement lists with more than 20 entries. Add the same functionality to source lists. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--web/html/packages.php1
-rw-r--r--web/template/pkg_details.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/web/html/packages.php b/web/html/packages.php
index 466042a..2fb9cbc 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -77,6 +77,7 @@ function collapseDependsList(list) {
$(document).ready(function() {
collapseDependsList("#pkgdepslist");
collapseDependsList("#pkgreqslist");
+ collapseDependsList("#pkgsrcslist");
});
</script>
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index b3d02ac..19daefc 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -359,7 +359,7 @@ if ($row["PackagerUID"]):
</div>
<?php if (count($sources) > 0): ?>
<div>
- <ul>
+ <ul id="pkgsrcslist">
<?php
while (list($k, $src) = each($sources)):
$src = explode('::', $src);