Dave Jarvis' Repositories

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

Fixes grammar

AuthorDave Jarvis <email>
Date2026-02-10 18:15:22 GMT-0800
Commit180ffe651ce4fc976455220704e87a9d099590b7
Parentc649a36
HomePage.php
private function renderRepoCard($repo) {
- // REUSE: Re-target the single Git instance
$this->git->setRepository($repo['path']);
echo '<h3>' . htmlspecialchars($repo['name']) . '</h3>';
- // Stats and Timestamp on one line
echo '<p class="repo-meta">';
- echo $stats['branches'] . ' branches, ' . $stats['tags'] . ' tags';
+
+ $branchLabel = $stats['branches'] === 1 ? 'branch' : 'branches';
+ $tagLabel = $stats['tags'] === 1 ? 'tag' : 'tags';
+
+ echo $stats['branches'] . ' ' . $branchLabel . ', ' . $stats['tags'] . ' ' . $tagLabel;
if ($main) {
echo '</p>';
- // Description with visual separation
$descPath = $repo['path'] . '/description';
if (file_exists($descPath)) {
Delta5 lines added, 4 lines removed, 1-line increase