Skip to content

Instantly share code, notes, and snippets.

@bvaudour
Last active November 28, 2018 11:52
Show Gist options
  • Save bvaudour/9b3dd64c052a5ae78570ab1cfda01233 to your computer and use it in GitHub Desktop.
Save bvaudour/9b3dd64c052a5ae78570ab1cfda01233 to your computer and use it in GitHub Desktop.
<?php
include __DIR__.'/inc/vars.php';
include __DIR__.'/inc/util.php';
$sd = '/package/list';
$args = [
'repo' => 'build',
'sortby' => 'date',
'sortdir' => 'desc',
'limit' => 14,
'page' => 1,
];
$result = execRequest($sd, $args);
if ($result === false) {
echo 'Internal servor error';
return;
}
$packages = $result['data'];
?>
<table>
<tbody>
<tr>
<td>Full list<td>
<td></td>
</tr>
<?php foreach ($packages as $package): ?>
<tr>
<td><a href="view.php?repo=<?php echo $package['Repository']; ?>&name=<?php echo $package['CompleteName']; ?>"><?php echo $package['CompleteName']; ?></a></td>
<td><?php echo $package['BuildDate']; ?></td>
<tr>
<?php endforeach; ?>
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment