1/*
2 *	aegis - project change supervisor
3 *	Copyright (C) 1994, 2001, 2006-2008 Peter Miller
4 *
5 *	This program is free software; you can redistribute it and/or modify
6 *	it under the terms of the GNU General Public License as published by
7 *	the Free Software Foundation; either version 3 of the License, or
8 *	(at your option) any later version.
9 *
10 *	This program is distributed in the hope that it will be useful,
11 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 *	GNU General Public License for more details.
14 *
15 *	You should have received a copy of the GNU General Public License
16 *	along with this program. If not, see
17 *	<http://www.gnu.org/licenses/>.
18 */
19
20auto p, ps, name, cmnt;
21p = project[project_name()];
22title("The Project Reviewer Report", sprintf("Project \"%s\"", p.name));
23ps = p.state.branch;
24if (terse())
25{
26	columns({ name = "Login\n--------"; right = 0; });
27	for (name in sort(ps.reviewer))
28		print(name);
29}
30else
31{
32	columns
33	(
34		{ name = "Login\n--------"; width = 8; },
35		{ name = "Full Name\n-----------"; right = 0; padding = 2; }
36	);
37	for (name in sort(ps.reviewer))
38	{
39		try { cmnt = passwd[name].pw_comment; }
40			catch (cmnt) { cmnt = ""; }
41		print(name, cmnt);
42	}
43}
44