Dave Jarvis' Repositories

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

Adds repo description

AuthorDave Jarvis <email>
Date2026-02-10 17:46:17 GMT-0800
Commite9c98ca32f7b82e1019f456db5921a93b7157ac3
Parent8964204
HomePage.php
echo '<a href="?repo=' . urlencode($repo['safe_name']) . '" class="repo-card">';
echo '<h3>' . htmlspecialchars($repo['name']) . '</h3>';
- if ($main) echo '<p>Branch: ' . htmlspecialchars($main['name']) . '</p>';
+
+ $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>';
Delta9 lines added, 1 line removed, 8-line increase