Only display headers if needed

# patch by George
This commit is contained in:
didou
2004-10-29 14:23:22 +00:00
parent e50da48229
commit 3fc6d90513

View File

@@ -721,6 +721,8 @@ print ($navbar."<p>&nbsp;</p>\n");
// Files table goes here // Files table goes here
// ========================================================================= // =========================================================================
if (count($files_status) != 0) {
print <<<END_OF_MULTILINE print <<<END_OF_MULTILINE
<a name="files"></a> <a name="files"></a>
<table width="820" border="0" cellpadding="4" cellspacing="1" align="center"> <table width="820" border="0" cellpadding="4" cellspacing="1" align="center">
@@ -745,11 +747,11 @@ print <<<END_OF_MULTILINE
</tr> </tr>
END_OF_MULTILINE; END_OF_MULTILINE;
// This was the previous directory [first] // This was the previous directory [first]
$prev_dir = $new_dir = $DOCDIR."en"; $prev_dir = $new_dir = $DOCDIR."en";
// Go through all files collected // Go through all files collected
foreach ($files_status as $num => $file) { foreach ($files_status as $num => $file) {
// Make the maintainer a link, if we have that maintainer in the list // Make the maintainer a link, if we have that maintainer in the list
if (isset($maint_by_nick[$file["maintainer"]])) { if (isset($maint_by_nick[$file["maintainer"]])) {
@@ -797,11 +799,12 @@ foreach ($files_status as $num => $file) {
"<td class=c>{$file['maintainer']}</td>". "<td class=c>{$file['maintainer']}</td>".
"<td class=c>".trim($file['status'])."</td></tr>\n"; "<td class=c>".trim($file['status'])."</td></tr>\n";
}
print("</table>\n<p>&nbsp;</p>\n$navbar<p>&nbsp;</p>\n");
} }
print("</table>\n<p>&nbsp;</p>\n$navbar<p>&nbsp;</p>\n");
// ========================================================================= // =========================================================================
// Work in progress table goes here // Work in progress table goes here
// ========================================================================= // =========================================================================