summaryrefslogtreecommitdiffstats
path: root/web
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 /web
parentb30bb6f534e20f0a93a08c129ec41f7cc87e440a (diff)
downloadaur-13820d2b168e96efa83aa04aab3e5a06c97fe78b.tar.gz
aur-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>
Diffstat (limited to 'web')
-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 466042ac..2fb9cbc6 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 b3d02ac5..19daefce 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);