mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
0f45e98a08
commit
e582cfe182
2 changed files with 32 additions and 2 deletions
|
@ -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)):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue