[aur-dev] [PATCH 4/4] Add requests to dashboard

Lukas Fleischer lfleischer at archlinux.org
Tue Feb 7 08:04:16 UTC 2017


Add a new table which shows all package requests affecting the currently
logged in user.

Signed-off-by: Lukas Fleischer <lfleischer at archlinux.org>
---
 web/html/home.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/web/html/home.php b/web/html/home.php
index 62409af..381cb71 100644
--- a/web/html/home.php
+++ b/web/html/home.php
@@ -33,6 +33,12 @@ if (isset($_COOKIE["AURSID"])) {
 			);
 			pkg_search_page($params, false, $_COOKIE["AURSID"]);
 			?>
+			<h3><?= __("My Requests"); ?></h3>
+			<?php
+			$results = pkgreq_list(0, 50, uid_from_sid($_COOKIE["AURSID"]));
+			$show_headers = false;
+			include('pkgreq_results.php');
+			?>
 			<h3><?= __("My Packages"); ?> <span class="more">(<a href="<?= get_uri('/packages/') ?>?SeB=m&K=<?= username_from_sid($_COOKIE["AURSID"]); ?>"><?= __('more') ?></a>)</span></h3>
 			<?php
 			$params = array(
-- 
2.11.1


More information about the aur-dev mailing list