Dave Jarvis' Repositories

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

Adjusts spacing again

AuthorDave Jarvis <email>
Date2026-02-09 12:58:24 GMT-0800
Commit50376a8b6d1d415253cd8e6a900ee7679ed014dc
Parent8d05d07
FilePage.php
$repoUrl = '?repo=' . urlencode( $this->currentRepo['safe_name'] );
$path = $_GET['name'] ?? '';
- $b = '<div class="breadcrumb">';
+ $o = '<div class="breadcrumb">';
- $b .= '<a href="?">Repositories</a><span>/</span>';
- $b .= '<a href="' . $repoUrl . '">' .
+ $o .= '<a href="?">Repositories</a><span>/</span>';
+ $o .= '<a href="' . $repoUrl . '">' .
htmlspecialchars( $this->currentRepo['name'] ) . '</a>';
if( $path ) {
$parts = explode( '/', trim( $path, '/' ) );
$acc = '';
foreach($parts as $idx => $part) {
$acc .= ($idx===0?'':'/') . $part;
- $b .= '<span>/</span>';
- if( $idx === count($parts) - 1 ) {
- $b .= '<span>' . htmlspecialchars( $part ) . '</span>';
+ if( $idx === count( $parts ) - 1 ) {
+ $o .= '<span>/</span><span>' . htmlspecialchars( $part ) .
+ '</span>';
} else {
- $b .= '<a href="' . $repoUrl . '&name=' . urlencode( $acc ) . '">' .
- htmlspecialchars( $part ) . '</a>';
+ $o .= '<span>/</span><a href="' . $repoUrl . '&name=' .
+ urlencode( $acc ) . '">' . htmlspecialchars( $part ) .
+ '</a>';
}
}
} elseif( $this->hash ) {
- $b .= '<span>/</span><span>' . $type . ' ' .
+ $o .= '<span>/</span><span>' . $type . ' ' .
substr( $hash, 0, 7 ) . '</span>';
}
- echo $b . '</div>';
+ echo $o . '</div>';
}
}
repo.css
.breadcrumb span {
color: #8b949e;
- margin: 0 8px;
+ margin: 0 4px;
}
Delta12 lines added, 11 lines removed, 1-line increase