mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Highlight broken dependencies
If a dependency neither exists in the official repositories nor in the AUR, make it appear bold red. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
8dcf225f63
commit
66d12f0c37
2 changed files with 14 additions and 0 deletions
|
@ -147,3 +147,8 @@ label.confirmation,
|
||||||
#merge-into {
|
#merge-into {
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pkgdepslist .broken {
|
||||||
|
color: red;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
|
@ -336,6 +336,15 @@ function pkg_depend_link($name, $type, $cond, $arch, $pkg_id) {
|
||||||
*/
|
*/
|
||||||
$providers = pkg_providers($name);
|
$providers = pkg_providers($name);
|
||||||
|
|
||||||
|
if (count($providers) == 0) {
|
||||||
|
$link = '<span class="broken">';
|
||||||
|
$link .= htmlspecialchars($name);
|
||||||
|
$link .= '</span>';
|
||||||
|
$link .= htmlspecialchars($cond) . ' ';
|
||||||
|
$link .= pkg_deplink_annotation($type, $arch, $desc);
|
||||||
|
return $link;
|
||||||
|
}
|
||||||
|
|
||||||
$link = htmlspecialchars($name);
|
$link = htmlspecialchars($name);
|
||||||
foreach ($providers as $provider) {
|
foreach ($providers as $provider) {
|
||||||
if ($provider[1] == $name) {
|
if ($provider[1] == $name) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue