Dave Jarvis' Repositories

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

Navigates to commit page for tag

AuthorDave Jarvis <email>
Date2026-02-10 23:52:10 GMT-0800
Commit4a49a51b24c081ed035c4cedf609f2261805fccb
Parentf40ac8d
Delta12 lines added, 8 lines removed, 4-line increase
TagRenderer.php
$repoParam = '&repo=' . urlencode($this->repoSafeName);
$filesUrl = '?hash=' . $targetSha . $repoParam;
- $commitUrl = '?action=commits&hash=' . $targetSha . $repoParam;
+ $commitUrl = '?action=commit&hash=' . $targetSha . $repoParam;
echo '<tr>';
- // 1. Name
echo '<td class="tag-name">';
echo '<a href="' . $filesUrl . '"><i class="fas fa-tag"></i> ' . htmlspecialchars($name) . '</a>';
echo '</td>';
- // 2. Message
echo '<td class="tag-message">';
echo ($message !== '') ? htmlspecialchars(strtok($message, "\n")) : '<span style="color: #484f58; font-style: italic;">No description</span>';
echo '</td>';
- // 3. Author
echo '<td class="tag-author">' . htmlspecialchars($author) . '</td>';
- // 4. Timestamp
echo '<td class="tag-time">';
$this->renderTime($timestamp);
echo '</td>';
- // 5. Hash
echo '<td class="tag-hash">';
echo '<a href="' . $commitUrl . '" class="commit-hash">' . substr($sha, 0, 7) . '</a>';
TagsPage.php
echo '<th>Message</th>';
echo '<th>Author</th>';
- echo '<th>Age</th>';
- echo '<th style="text-align: right;">Commit</th>';
+ echo '<th class="tag-age-header">Age</th>';
+ echo '<th class="tag-commit-header">Commit</th>';
echo '</tr>';
echo '</thead>';
repo.css
color: #8b949e;
white-space: nowrap;
+ text-align: right;
}
.tag-table .tag-hash {
+ text-align: right;
+}
+
+.tag-table .tag-age-header {
text-align: right;
+}
+
+.tag-table .tag-commit-header {
+ text-align: center;
}