| | echo '<h3>' . htmlspecialchars($repo['name']) . '</h3>'; |
| | |
| | - $descFile = $repo['path'] . '/description'; |
| | - if (file_exists($descFile)) { |
| | - $description = trim(file_get_contents($descFile)); |
| | - if ($description !== '') { |
| | - echo '<p>' . htmlspecialchars($description) . '</p>'; |
| | - } |
| | - } |
| | - |
| | echo '<p>' . $stats['branches'] . ' branches, ' . $stats['tags'] . ' tags</p>'; |
| | |
| | if ($main) { |
| | $this->git->history('HEAD', 1, function($c) use ($repo) { |
| | $renderer = new HtmlFileRenderer($repo['safe_name']); |
| | echo '<p class="repo-card-time">'; |
| | $renderer->renderTime($c->date); |
| | echo '</p>'; |
| | }); |
| | + } |
| | + |
| | + $descPath = $repo['path'] . '/description'; |
| | + if (file_exists($descPath)) { |
| | + $description = trim(file_get_contents($descPath)); |
| | + if ($description !== '') { |
| | + echo '<p>' . htmlspecialchars($description) . '</p>'; |
| | + } |
| | } |
| | |