Dave Jarvis' Repositories

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

Rearranges stats

AuthorDave Jarvis <email>
Date2026-02-10 17:49:58 GMT-0800
Commita7dddd74ef38ae03eb448d28ff5097c416b01a70
Parent8eed46c
Delta7 lines added, 4 lines removed, 3-line increase
HomePage.php
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>';
}
}