Add flagged packages to the dashboard

Implement a table that shows all packages which are flagged out-of-date
and either maintained or co-maintained by the currently logged in user.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2017-02-07 08:20:34 +01:00
parent 880d25e98c
commit d45585e36d

View file

@ -21,6 +21,18 @@ if (isset($_COOKIE["AURSID"])) {
<div id="intro" class="box">
<?php if (isset($_COOKIE["AURSID"])): ?>
<h2><?= __("Dashboard"); ?></h2>
<h3><?= __("My Flagged Packages"); ?></h3>
<?php
$params = array(
'PP' => 50,
'SeB' => 'M',
'K' => username_from_sid($_COOKIE["AURSID"]),
'outdated' => 'on',
'SB' => 'l',
'SO' => 'a'
);
pkg_search_page($params, false, $_COOKIE["AURSID"]);
?>
<h3><?= __("My Packages"); ?> <span class="more">(<a href="<?= get_uri('/packages/') ?>?SeB=m&amp;K=<?= username_from_sid($_COOKIE["AURSID"]); ?>"><?= __('more') ?></a>)</span></h3>
<?php
$params = array(