| | echo '<h3>' . htmlspecialchars($repo['name']) . '</h3>'; |
| | |
| | - echo '<p>' . $stats['branches'] . ' branches, ' . $stats['tags'] . ' tags</p>'; |
| | + // Stats and Timestamp on one line |
| | + echo '<p class="repo-meta">'; |
| | + echo $stats['branches'] . ' branches, ' . $stats['tags'] . ' tags'; |
| | |
| | if ($main) { |
| | + echo ', '; |
| | $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>'; |
| | }); |
| | } |
| | + echo '</p>'; |
| | |
| | + // Description with visual separation |
| | $descPath = $repo['path'] . '/description'; |
| | if (file_exists($descPath)) { |
| | $description = trim(file_get_contents($descPath)); |
| | if ($description !== '') { |
| | - echo '<p>' . htmlspecialchars($description) . '</p>'; |
| | + echo '<p style="margin-top: 1.5em;">' . htmlspecialchars($description) . '</p>'; |
| | } |
| | } |