Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/treetrek.git

Moves description

AuthorDave Jarvis <email>
Date2026-02-10 17:48:17 GMT-0800
Commit8eed46c4cd4db4c86194a1e5182d45f6ef3d9b0f
Parente9c98ca
HomePage.php
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>';
+ }
}
Delta8 lines added, 8 lines removed