mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
Only display headers if needed
# patch by George
This commit is contained in:
@@ -721,6 +721,8 @@ print ($navbar."<p> </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> </p>\n$navbar<p> </p>\n");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print("</table>\n<p> </p>\n$navbar<p> </p>\n");
|
|
||||||
|
|
||||||
|
|
||||||
// =========================================================================
|
// =========================================================================
|
||||||
// Work in progress table goes here
|
// Work in progress table goes here
|
||||||
// =========================================================================
|
// =========================================================================
|
||||||
|
Reference in New Issue
Block a user