diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-04-18 23:56:06 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-04-18 23:57:46 +0200 |
commit | e582cfe1823617398657f1b46482f7c608b5aabe (patch) | |
tree | aa35a4da25d26375cd54a321d4103c2f36962b19 /web/template/pkg_details.php | |
parent | 0f45e98a088d7e941dce09ef17643335f4483f7e (diff) | |
download | aur-e582cfe1823617398657f1b46482f7c608b5aabe.tar.gz aur-e582cfe1823617398657f1b46482f7c608b5aabe.tar.xz |
Collapse long dependency lists
Collapse package dependency lists with more than 20 entries and add a
link to show the full list.
The JavaScript code for this originates from the archweb project. Note
that the full list is shown when JavaScript is disabled or unavailable.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/pkg_details.php')
-rw-r--r-- | web/template/pkg_details.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index ef40f1f6..f0bfa0b8 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -218,7 +218,7 @@ if ($row["MaintainerUID"]): <div id="pkgdeps" class="listing"> <h3><?= __('Dependencies') . " (" . count($deps) . ")"?></h3> <?php if (count($deps) > 0): ?> - <ul> + <ul id="pkgdepslist"> <?php while (list($k, $darr) = each($deps)): ?> <li><?= pkg_depend_link($darr[0], $darr[1], $darr[2], $darr[3]); ?></li> <?php endwhile; ?> @@ -228,7 +228,7 @@ if ($row["MaintainerUID"]): <div id="pkgreqs" class="listing"> <h3><?= __('Required by') . " (" . count($requiredby) . ")"?></h3> <?php if (count($requiredby) > 0): ?> - <ul> + <ul id="pkgreqslist"> <?php # darr: (PackageName, PackageID) while (list($k, $darr) = each($requiredby)): |