diff --git a/distroquery.php b/distroquery.php index 21dfbfb..2690e3a 100644 --- a/distroquery.php +++ b/distroquery.php @@ -163,7 +163,7 @@ $url_prefix = home_url() . "/rpms/";

" width="24" height="24"> :

-
+ @@ -257,7 +257,7 @@ $url_prefix = home_url() . "/rpms/";

" width="24" height="24"> :

-
+
:
@@ -271,38 +271,49 @@ $url_prefix = home_url() . "/rpms/"; - - -
:
:". $j["source"]["name"] . " "; ?> -
:". $brother . " "; - } ?> -
: -
: -
: -
" . + _r("Brothers") . "" . _r("Provides") . "" . + _r("Obsoletes") . "" . _r("Requires") . ""; + echo ""; + foreach ($j["brothers"] as $brother) { + $brother_url = $url_prefix . $repo . "/" . $brother . "/" . $arch; + echo "". $brother . "
"; } + echo ""; + foreach ($j["provides"] as $provide) { + echo $provide["name"]; + if ($provide["flags"] != "") echo " " . $provide["flags"] . $provide["version"]; + echo "
"; + } + echo ""; + foreach ($j["obsoletes"] as $obsolete) { + echo $obsolete["name"]; + if ($obsolete["flags"] != "") echo " " . $obsolete["flags"] . $obsolete["version"]; + echo "
"; + } + echo ""; + foreach ($j["requires"] as $require) { + echo $require["name"]; + if ($require["flags"] != "") echo " " . $require["flags"] . $require["version"]; + + $cnt = 0; + foreach ($require["providers"] as $provider) { + $cnt++; + $provider_url = $url_prefix . $provider["repository"] . "/" . $provider["name"] . "/" . $arch; + echo " [" . $cnt . "]"; + } + if ($cnt == 0) echo " (" . _r("unresolved") . ")"; + + echo "
"; + } + echo ""; } +} ?> diff --git a/style.css b/style.css index 55c27e9..4b46cd2 100644 --- a/style.css +++ b/style.css @@ -261,7 +261,7 @@ div#ag-terms { span#distromatic table, span#distromatic table tr, span#distromatic table td { - padding:0; + padding:4px; border:0; word-break: break-word; } @@ -331,7 +331,7 @@ table.queryfiletable td { font-family:courier; } -table.pkgpage tr:nth-child(even) td { background-color: #F2F2F2; } -table.pkgpage th { padding:0; font-weight: 800; border: 0; text-align: left; vertical-align: top; } -table.pkgpage td { vertical-align: top; } +table.pkgpage tr:nth-child(even) td { padding:2px; background-color: #F2F2F2; } +table.pkgpage th { padding:4px; font-weight: 800; border: 0; text-align: left; vertical-align: top; } +table.pkgpage td { padding:4px; vertical-align: top; }