diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/pkg_mgr.php | 6 | ||||
-rw-r--r-- | src/usr/local/www/pkg_mgr_installed.php | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/usr/local/www/pkg_mgr.php b/src/usr/local/www/pkg_mgr.php index 3872e89..5f25564 100644 --- a/src/usr/local/www/pkg_mgr.php +++ b/src/usr/local/www/pkg_mgr.php @@ -217,6 +217,12 @@ if (!$pkg_info || !is_array($pkg_info)): ?> <td> <?=$index['desc']?> +<?php if (is_array($index['deps']) && count($index['deps'])): ?> + <br /><br /><?= gettext("Package Dependencies") ?>: + <?php foreach ($index['deps'] as $pdep): ?> + <br /><i class="fa fa-paperclip"></i> <?= basename($pdep['origin']) ?>-<?= $pdep['version'] ?> + <?php endforeach; ?> +<?php endif; ?> </td> <td> <a title="<?=gettext("Click to install")?>" href="pkg_mgr_install.php?id=<?=$index['name']?>" class="btn btn-success btn-sm">install</a> diff --git a/src/usr/local/www/pkg_mgr_installed.php b/src/usr/local/www/pkg_mgr_installed.php index fca2f6d..8d8f298 100644 --- a/src/usr/local/www/pkg_mgr_installed.php +++ b/src/usr/local/www/pkg_mgr_installed.php @@ -180,6 +180,12 @@ if (empty($installed_packages)):?> </td> <td> <?=$pkg['desc']?> +<?php if (is_array($pkg['deps']) && count($pkg['deps'])): ?> + <br /><br /><?= gettext("Package Dependencies") ?>: + <?php foreach ($pkg['deps'] as $pdep): ?> + <br /><i class="fa fa-paperclip"></i> <?= basename($pdep['origin']) ?>-<?= $pdep['version'] ?> + <?php endforeach; ?> +<?php endif; ?> </td> <td> <a title="<?=gettext("Remove")?>" href="pkg_mgr_install.php?mode=delete&pkg=<?=$pkg['name']?>" class="fa fa-trash"></a> |