From 2dd3d04f45f8a0e57f0c8686a12d7b95fe5bdb59 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 26 Aug 2013 17:29:24 +0200 Subject: Add "Last Votes by TU" list This shows a list of all Trusted Users and the vote ID of the last proposal each of the TUs voted on. This list is sorted by vote ID. Signed-off-by: Lukas Fleischer --- web/html/tu.php | 2 ++ web/lib/acctfuncs.inc.php | 19 ++++++++++++++++++ web/template/tu_last_votes_list.php | 40 +++++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 web/template/tu_last_votes_list.php diff --git a/web/html/tu.php b/web/html/tu.php index e2f77127..d2216190 100644 --- a/web/html/tu.php +++ b/web/html/tu.php @@ -134,6 +134,8 @@ if ($atype == "Trusted User" || $atype == "Developer") { query($q); + + $details = array(); + while ($row = $result->fetch(PDO::FETCH_ASSOC)) { + $details[] = $row; + } + + return $details; +} + /** * Determine the total number of Trusted User proposals * diff --git a/web/template/tu_last_votes_list.php b/web/template/tu_last_votes_list.php new file mode 100644 index 00000000..090ce8d0 --- /dev/null +++ b/web/template/tu_last_votes_list.php @@ -0,0 +1,40 @@ +
+

+ + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+
-- cgit v1.2.3-24-g4f1b