Add links to all owned packages to the dashboard

In addition to showing the 50 most recent maintained and co-maintained
packages, add links to all packages one owns or co-maintains.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2017-02-04 11:04:26 +01:00
parent 555cdac2db
commit a1890d400b

View file

@ -21,7 +21,7 @@ if (isset($_COOKIE["AURSID"])) {
<div id="intro" class="box">
<?php if (isset($_COOKIE["AURSID"])): ?>
<h2><?= __("Dashboard"); ?></h2>
<h3><?= __("My Packages"); ?></h3>
<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(
'PP' => 50,
@ -32,7 +32,7 @@ if (isset($_COOKIE["AURSID"])) {
);
pkg_search_page($params, false, $_COOKIE["AURSID"]);
?>
<h3><?= __("Co-Maintained Packages"); ?></h3>
<h3><?= __("Co-Maintained Packages"); ?> <span class="more">(<a href="<?= get_uri('/packages/') ?>?SeB=c&amp;K=<?= username_from_sid($_COOKIE["AURSID"]); ?>"><?= __('more') ?></a>)</span></h3>
<?php
$params = array(
'PP' => 50,