distroquery: add changelog table in source package page
This commit is contained in:
parent
b1d479283d
commit
c17f34699b
@ -163,6 +163,8 @@ $url_prefix = home_url() . "/rpms/";
|
||||
<h1><img src="https://www.google.com/s2/favicons?domain=<?php echo $j["url"] ?>" width="24" height="24">
|
||||
<?php echo $j["name"] ?>: <?php echo $j["summary"] ?></h1>
|
||||
|
||||
<h5><?php echo $j["description"] ?></h5>
|
||||
|
||||
<table class="pkgpage" width="100%">
|
||||
<tr><td width="15%"><?php echo _r("Name") ?>:</td><td><?php echo $j["name"] ?></td></tr>
|
||||
<tr><td width="15%"><?php echo _r("Release") ?>:</td><td>
|
||||
@ -170,15 +172,16 @@ $url_prefix = home_url() . "/rpms/";
|
||||
echo $j["version"]."-".$j["release"] ?></td></tr>
|
||||
<tr><td width="15%"><?php echo _r("Group") ?>:</td><td><?php echo $j["group"] ?></td></tr>
|
||||
<tr><td width="15%"><?php echo _r("Maintainer") ?>:</td><td><?php echo $j["maintainer"] ?></td></tr>
|
||||
<tr><td width="15%"><?php echo _r("Description") ?>:</td><td><?php echo $j["description"] ?></td></tr>
|
||||
<tr><td width="15%"><?php echo _r("License") ?>:</td><td><?php echo $j["license"] ?></td></tr>
|
||||
<tr><td width="15%"><?php echo _r("Size") ?>:</td><td><?php echo $j["size"] ?></td></tr>
|
||||
<tr><td width="15%"><?php echo _r("Upstream URL") ?>:</td><td><a href="<?php echo $j["url"] ?>" target=_blank><?php echo $j["url"] ?></a></td></tr>
|
||||
<tr><td width="15%"><?php echo _r("Build time") ?>:</td><td><?php echo iso8601_to_datetime($j["buildtime"]) ?></td></tr>
|
||||
</table>
|
||||
|
||||
<table class="pkgpage" width="100%"><?php
|
||||
echo "<tr><th></th>";
|
||||
<?php
|
||||
// Built RPMS and requirements table
|
||||
echo "<h5>" . _r("Binary packages and requirements") . "</h5>";
|
||||
echo "<table class=\"pkgpage\" width=\"100%\"><tr><th></th>";
|
||||
|
||||
foreach ($j["children"]["archs"] as $arch => $value) {
|
||||
echo "<th>" . $arch . "</th>";
|
||||
@ -209,10 +212,21 @@ $url_prefix = home_url() . "/rpms/";
|
||||
}
|
||||
echo "</td>";
|
||||
}
|
||||
echo "</tr></table>";
|
||||
|
||||
// Changelog
|
||||
echo "<h5>" . _r("History of changes") . "</h5>";
|
||||
echo "<table class=\"pkgpage\" width=\"100%\"><tr><th>" . _r("Date") .
|
||||
"</th><th>" . _r("Packager") . "</th><th>" . _r("Release") .
|
||||
"</th><th>" . _r("Description") . "</th></tr>";
|
||||
|
||||
foreach ($j["changelog"] as $changelog) {
|
||||
echo "<tr><td>" . substr($changelog["date"],0,10) . "</td><td>" . $changelog["packager"] . "</td><td>" .
|
||||
$changelog["release"] . "</td><td>" . nl2br($changelog["text"]) . "</td></tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
|
||||
echo "</tr>";
|
||||
?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
}
|
||||
@ -243,6 +257,8 @@ $url_prefix = home_url() . "/rpms/";
|
||||
<h1><img src="https://www.google.com/s2/favicons?domain=<?php echo $j["source"]["url"] ?>" width="24" height="24">
|
||||
<?php echo $j["name"] ?>: <?php echo $j["summary"] ?></h1>
|
||||
|
||||
<h5><?php echo $j["description"] ?></h5>
|
||||
|
||||
<table class="pkgpage" width="100%">
|
||||
<tr><td width="15%"><?php echo _r("Name") ?>:</td><td><?php echo $j["name"] ?></td></tr>
|
||||
<tr><td width="15%"><?php echo _r("Release") ?>:</td><td>
|
||||
@ -250,7 +266,6 @@ $url_prefix = home_url() . "/rpms/";
|
||||
echo $j["source"]["version"]."-".$j["source"]["release"] ?></td></tr>
|
||||
<tr><td width="15%"><?php echo _r("Architecture") ?>:</td><td><?php echo $j["arch"] ?></td></tr>
|
||||
<tr><td width="15%"><?php echo _r("Group") ?>:</td><td><?php echo $j["group"] ?></td></tr>
|
||||
<tr><td width="15%"><?php echo _r("Description") ?>:</td><td><?php echo $j["description"] ?></td></tr>
|
||||
<tr><td width="15%"><?php echo _r("Size") ?>:</td><td><?php echo $j["size"] ?></td></tr>
|
||||
<tr><td width="15%"><?php echo _r("Upstream URL") ?>:</td><td><a href="<?php echo $j["source"]["url"] ?>" target=_blank><?php echo $j["source"]["url"] ?></a></td></tr>
|
||||
<tr><td width="15%"><?php echo _r("Source RPM") ?>:</td><td><?php
|
||||
|
Loading…
Reference in New Issue
Block a user