mirror of
https://github.com/git-pkgs/proxy.git
synced 2026-08-24 12:54:58 -04:00
* Show build information in web UI Signed-off-by: WilliamK112 <164879897+WilliamK112@users.noreply.github.com> * Fix footer build info shadowed by page Version fields Shared footer templates were reading .Version and .Commit, which resolve to package data on VersionShowData and BrowseSourceData. Point the footer at Layout.BuildInfo and cover both pages so the proxy version stays visible. Signed-off-by: WilliamK112 <164879897+WilliamK112@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com> * Fix Layout build info field promotion --------- Signed-off-by: WilliamK112 <164879897+WilliamK112@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
41 lines
2.4 KiB
HTML
41 lines
2.4 KiB
HTML
{{define "footer"}}
|
|
<footer class="border-t border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900 mt-16">
|
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
|
<div class="grid md:grid-cols-3 gap-8">
|
|
<div>
|
|
<h3 class="text-sm font-semibold text-gray-900 dark:text-gray-100 mb-3">About</h3>
|
|
<p class="text-sm text-gray-600 dark:text-gray-400">
|
|
git-pkgs proxy is a caching proxy for package registries supporting 17+ ecosystems.
|
|
</p>
|
|
<p class="text-sm text-gray-600 dark:text-gray-400 mt-2">
|
|
<a href="https://github.com/git-pkgs/proxy" target="_blank" rel="noopener" class="inline-flex items-center gap-1 hover:text-gray-900 dark:hover:text-gray-100">
|
|
<i data-lucide="github" class="w-4 h-4"></i><span>github.com/git-pkgs/proxy</span>
|
|
</a>
|
|
</p>
|
|
{{if .BuildInfo.Version}}
|
|
<p class="text-xs text-gray-500 dark:text-gray-500 mt-2">
|
|
proxy {{.BuildInfo.Version}}{{if .BuildInfo.Commit}} ({{.BuildInfo.Commit}}){{end}}
|
|
</p>
|
|
{{end}}
|
|
</div>
|
|
<div>
|
|
<h3 class="text-sm font-semibold text-gray-900 dark:text-gray-100 mb-3">Resources</h3>
|
|
<ul class="space-y-2 text-sm">
|
|
<li><a href="/ui/install" class="text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100">Configuration Guide</a></li>
|
|
<li><a href="/health" class="text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100">Health Check</a></li>
|
|
<li><a href="/stats" class="text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100">API Stats</a></li>
|
|
<li><a href="/openapi.json" class="text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100">OpenAPI Spec</a></li>
|
|
</ul>
|
|
</div>
|
|
<div>
|
|
<h3 class="text-sm font-semibold text-gray-900 dark:text-gray-100 mb-3">Supported Ecosystems</h3>
|
|
<div class="flex flex-wrap gap-1">
|
|
{{range supportedEcosystems}}
|
|
{{template "ecosystem_badge" .}}
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
{{end}}
|