/* * aegis - project change supervisor * Copyright (C) 1997, 1998 Peter Miller; * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. * * MANIFEST: report the files in a project */ auto script_name; script_name = getenv("SCRIPT_NAME"); if (script_name == "") script_name = "http://localhost/cgi-bin/aegis.cgi"; columns({width = 1000;}); print("Content-Type: text/html"); print(""); auto pn; pn = project_name(); print(""); print("Project " ## quote_html(pn) ## " Files"); print("

"); print("Project ``" ## quote_html(pn) ## "''
"); print("List of Files"); print("

"); auto p, ps, j; p = project[pn]; ps = p.state.src; print("
"); print(""); for (j in ps) { print(""); } print("
TypeAction>EditFile Name
"); print(j.usage); print(""); print(j.action); print(""); if (j.edit_number_origin != "" && j.edit_number != "") { if (j.edit_number_origin == j.edit_number) print(j.edit_number); else print(j.edit_number_origin ## " -> " ## j.edit_number); } else if (j.edit_number_origin != "") print(j.edit_number_origin); else if (j.edit_number != "") print(j.edit_number); print(""); auto href; href = script_name ## "?file@pre+" ## quote_url(j.file_name); href ##= "+project@" ## quote_url(pn); print(""); print("" ## quote_html(j.file_name) ## ""); if (j.deleted_by) { href = script_name ## "?file@chan_menu"; href ##= "+project@" ## quote_url(pn); href ##= "+change@" ## j.deleted_by; print("
Deleted by change"); print("" ## j.deleted_by ## "."); } if (j.about_to_be_created_by) { href = script_name ## "?file@chan_menu"; href ##= "+project@" ## quote_url(pn); href ##= "+change@" ## j.about_to_be_created_by; print("
About to be created by change"); print("" ## j.about_to_be_created_by ## "."); } if (j.locked_by) { href = script_name ## "?file@chan_menu"; href ##= "+project@" ## quote_url(pn); href ##= "+change@" ## j.locked_by; print("
Locked by change"); print("" ## j.locked_by ## "."); } if (j.about_to_be_copied_by) { href = script_name ## "?file@chan_menu"; href ##= "+project@" ## quote_url(pn); href ##= "+change@" ## j.about_to_be_copied_by; print("
About to be copied by change"); print("" ## j.about_to_be_copied_by ## "."); } if (j.move != "") { href = script_name ## "?file@file_menu+" ## quote_url(j.move); href ##= "+project@" ## quote_url(pn); print("
Moved " ## (j.action == create ? "from" : "to")); print(""); print("" ## quote_html(j.move) ## ""); } print("
"); href = script_name ## "?file@file_menu+" ## quote_url(j.file_name); href ##= "+project@" ## quote_url(pn); print(""); print("fm"); print("
"); print("Listed " ## count(keys(ps)) ## " files."); print("
"); print("A similar report may be obtained from the command line, with one of"); print("
ael pf -p " ## quote_html(pn));
print("aer proj_files -p " ## quote_html(pn) ## "
"); print("
"); print("This page was generated " ## now() ## "."); print("");