/*
* aegis - project change supervisor
* Copyright (C) 2002, 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
*
File Name | "); else { href = script_name ## "?file@proj_filme"; href ##= "+project@" ## quote_url(pn); print("File Name | "); } print("Revision | "); j = 1; for (m in sort(keys(metcol))) { print("");
if (j != sort_col)
{
href = script_name ## "?file@proj_filme+sort_col:" ## j;
href ##= "+project@" ## quote_url(pn);
print("");
}
auto msplit, ms2;
msplit = split(m, "_");
for (ms2 in msplit)
print(capitalize(ms2) ## " "); if (j != sort_col) print(""); print(" | ");
++j;
}
print("
---|---|---|---|
");
href = script_name ## "?file@file_menu+" ## 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(" | ");
print(""); if (j.edit_origin.revision != "" && j.edit.revision != "") { if (j.edit_origin.revision == j.edit.revision) print(j.edit.revision); else print(j.edit_origin.revision ## " -> " ## j.edit.revision); } else if (j.edit_origin.revision != "") print(j.edit_origin.revision); else if (j.edit.revision != "") print(j.edit.revision); print(" | "); auto met; for (m in sort(keys(metcol))) { for (met = 0; met < count(j.metrics); met++) { if (j.metrics[met].name == m) { print(""); print(sprintf("%4.2f", j.metrics[met].value)); print(" | "); } } } print("|
"); print("Listed " ## rownum ## " of " ## count(keys(ps)) ## " files."); print(" | Total: Average: | ");
for (m in sort(keys(metcol)))
{
print(""); print(sprintf("%4.2f", metcol[m]) ## " "); print(sprintf("%4.2f", metcol[m] / rownum) ## " "); print(" | ");
}
print("
ael pf -p " ## quote_html(pn)); print("aer proj_files -p " ## quote_html(pn) ## ""); print("