summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2017-02-07 08:20:34 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2017-02-08 19:18:27 +0100
commitd45585e36d6cbd9483f4a5b18cbbc346757ca6a0 (patch)
treeff6253e6dae746c19ebc8911e07d1f7019c08d10
parent880d25e98c3efd406532a1b460e32b6350c9e39c (diff)
downloadaur-d45585e36d6cbd9483f4a5b18cbbc346757ca6a0.tar.gz
aur-d45585e36d6cbd9483f4a5b18cbbc346757ca6a0.tar.xz
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>
-rw-r--r--web/html/home.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/web/html/home.php b/web/html/home.php
index 08ae59f6..62409af7 100644
--- a/web/html/home.php
+++ b/web/html/home.php
@@ -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(