From c17f34699b60e013890d1e8b0f59e1311449a661 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 7 Jul 2024 14:23:16 +0200 Subject: [PATCH] distroquery: add changelog table in source package page --- distroquery.php | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/distroquery.php b/distroquery.php index 8b2f753..21dfbfb 100644 --- a/distroquery.php +++ b/distroquery.php @@ -163,6 +163,8 @@ $url_prefix = home_url() . "/rpms/";

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

+
+ -
:
: @@ -170,15 +172,16 @@ $url_prefix = home_url() . "/rpms/"; echo $j["version"]."-".$j["release"] ?>
:
:
:
:
:
:" target=_blank>
:
-"; +" . _r("Binary packages and requirements") . ""; + echo "
"; foreach ($j["children"]["archs"] as $arch => $value) { echo ""; @@ -209,10 +212,21 @@ $url_prefix = home_url() . "/rpms/"; } echo ""; } + echo "
" . $arch . "
"; + + // Changelog + echo "
" . _r("History of changes") . "
"; + echo ""; + + foreach ($j["changelog"] as $changelog) { + echo ""; + } + echo "
" . _r("Date") . + "" . _r("Packager") . "" . _r("Release") . + "" . _r("Description") . "
" . substr($changelog["date"],0,10) . "" . $changelog["packager"] . "" . + $changelog["release"] . "" . nl2br($changelog["text"]) . "
"; - echo ""; ?> - " width="24" height="24"> : +
+ -
:
: @@ -250,7 +266,6 @@ $url_prefix = home_url() . "/rpms/"; echo $j["source"]["version"]."-".$j["source"]["release"] ?>
:
:
:
:
:" target=_blank>
: