mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44: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
|
||||
// =========================================================================
|
||||
|
||||
if (count($files_status) != 0) {
|
||||
|
||||
print <<<END_OF_MULTILINE
|
||||
<a name="files"></a>
|
||||
<table width="820" border="0" cellpadding="4" cellspacing="1" align="center">
|
||||
@@ -745,11 +747,11 @@ print <<<END_OF_MULTILINE
|
||||
</tr>
|
||||
END_OF_MULTILINE;
|
||||
|
||||
// This was the previous directory [first]
|
||||
$prev_dir = $new_dir = $DOCDIR."en";
|
||||
// This was the previous directory [first]
|
||||
$prev_dir = $new_dir = $DOCDIR."en";
|
||||
|
||||
// Go through all files collected
|
||||
foreach ($files_status as $num => $file) {
|
||||
// Go through all files collected
|
||||
foreach ($files_status as $num => $file) {
|
||||
|
||||
// Make the maintainer a link, if we have that maintainer in the list
|
||||
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>".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
|
||||
// =========================================================================
|
||||
|
Reference in New Issue
Block a user