/* * aegis - project change supervisor * Copyright (C) 2003, 2005-2008 Peter Miller * * 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 3 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, see * . */ auto pn; pn = project_name(); 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(""); print(""); print(""); print(""); print(""); print(""); print(""); /* * Netscape 4.x has numerous CSS bugs, two of which need mentioning. * 1. If a style sheet is nopt present Netscape says 404 Not found, when * it should silently ignore it. 2. Style sheets who's media is not * "screen" will be ignored. Fortunately we can use (2) to get around (1). */ print(""); auto stack, depth, n; depth=0; stack[depth] = project[pn].state.name; while ("" != (n = project[stack[depth]].state.parent_name)) { stack[++depth] = n; } while (depth >= 0) { print(""); } print(""); print("Project " ## quote_html(pn)); if (change_number_set()) print(" Change Files"); else print(" Files"); print("

"); print("Project"); auto long_project_name; auto prj_name_parts; prj_name_parts = split(pn, '.'); auto href; href = script_name ## "?file@proj_menu+project@" ## quote_url(prj_name_parts[0]); long_project_name = "" ## quote_html(prj_name_parts[0]) ## ""; auto j; for (j = 1; j < count(prj_name_parts); j++) { href ##= '.' ## prj_name_parts[j]; long_project_name ##= "." ## quote_html(prj_name_parts[j]) ## ""; }; long_project_name = "“" ## long_project_name ## "”,"; if (!change_number_set()) long_project_name ##="
"; /* HTTP limits lines to 510 characters */ for (j in wrap(long_project_name, 510)) print(j); auto cn; if (change_number_set()) { cn = change_number(); href = script_name ## "?file@chan_menu+project@" ## quote_url(pn) ## "+change@" ## cn; print("Change " ## cn ## ",
"); } print("List of Files"); print("

"); print("
"); auto p, ps; if (change_number_set()) { ps = project[pn].state.branch; auto cs; cs = ps.change[cn]; } else { p = project[pn]; ps = p.state.src; } print(""); print("" ## ""); auto src, rownum; rownum = 0; auto files; if (change_number_set()) files = cs.src; else files = ps; for (src in files) { if (rownum++ % 6 < 3) print(""); else print(""); print(""); } print(""); print("
TypeActionEditFile Name
"); print(src.usage); print(""); print(src.action); print(""); if (src.edit_origin.revision != "" && src.edit.revision != "") { if (src.edit_origin.revision == src.edit.revision) print(src.edit.revision); else print(src.edit_origin.revision ## " -> " ## src.edit.revision); } else if (src.edit_origin.revision != "") print(src.edit_origin.revision); else if (src.edit.revision != "") print(src.edit.revision); if (change_number_set()) { if (src.edit_origin_new.revision != "") print("
{cross " ## src.edit_origin_new.revision ## "}"); } print("
"); href = script_name ## "?file@file_menu+" ## quote_url(src.file_name); href ##= "+project@" ## quote_url(pn); if (change_number_set()) { href = href ## "+change@" ## cn; } print(""); print("" ## quote_html(src.file_name) ## ""); print(""); if (src.deleted_by) { href = script_name ## "?file@chan_menu"; href ##= "+project@" ## quote_url(pn); href ##= "+change@" ## src.deleted_by; print("
Deleted by change"); print("" ## src.deleted_by ## "."); } if (src.about_to_be_created_by) { href = script_name ## "?file@chan_menu"; href ##= "+project@" ## quote_url(pn); href ##= "+change@" ## src.about_to_be_created_by; print("
About to be created by change"); print("" ## src.about_to_be_created_by ## "."); } if (src.locked_by) { href = script_name ## "?file@chan_menu"; href ##= "+project@" ## quote_url(pn); href ##= "+change@" ## src.locked_by; print("
Locked by change"); print("" ## src.locked_by ## "."); } if (src.about_to_be_copied_by) { href = script_name ## "?file@chan_menu"; href ##= "+project@" ## quote_url(pn); href ##= "+change@" ## src.about_to_be_copied_by; print("
About to be copied by change"); print("" ## src.about_to_be_copied_by ## "."); } if (src.move != "") { href = script_name ## "?file@file_menu+" ## quote_url(src.move); href ##= "+project@" ## quote_url(pn); print("
Moved " ## (src.action == create ? "from" : "to")); print(""); print("" ## quote_html(src.move) ## ""); } print("
"); if (change_number_set()) { print("Listed " ## count(keys(cs.src)) ## " files."); } else { print("Listed " ## count(keys(ps)) ## " files."); } print("
"); print("
"); print("
"); print("
"); print("A similar report may be obtained from the command line, with one of"); if (change_number_set()) { print("
ael cf -p " ## quote_html(pn) ## " -c " ## cn);
    print("aer cf -p " ## quote_html(pn) ## " -c " ## cn ##
	"
"); } else { print("
ael pf -p " ## quote_html(pn));
    print("aer proj_files -p " ## quote_html(pn) ## "
"); } print("
"); print("
"); print("

["); print("Project List |"); href = script_name ## "?file@proj_menu+project@" ## quote_url(pn); print("Project Menu |"); href = script_name ## "?file@changes+project@" ## quote_url(pn); print("Change List"); if (change_number_set()) { href = script_name ## "?file@chan_menu+project@" ## quote_url(pn) ## "+change@" ## cn ; print(" |Change Menu"); } print("]

"); print("
"); print("This page was generated " ## now() ## "."); print("");