[aur-dev] [PATCH] Collapse long source lists
Lukas Fleischer
archlinux at cryptocrack.de
Wed Jun 4 17:33:24 EDT 2014
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 at cryptocrack.de>
---
web/html/packages.php | 1 +
web/template/pkg_details.php | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
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);
--
2.0.0
More information about the aur-dev
mailing list