caddy-git-server
Caddy module that provides a git server.
{{ define "page" }}
<div class="px-4 max-w-full bg-white shadow-sm rounded-sm">
<div class="px-4 py-2 border-b-2 font-medium">
Commit Log
</div>
<div class="flex flex-col divide-y">
{{ range .PageData.Commits }}
<div class="px-4 py-2 flex flex-row flex-nowrap justify-between items-center">
<div>
<p class="font-mono text-sm">{{ .Hash }}</p>
<p class="font-medium">{{ .Message }}</p>
<p class="text-gray-500">{{ .Date }} - {{ .Committer }}</p>
</div>
<!-- <div class="flex flew-row flex-nowrap">
<p class="font-mono text-sm">{{ .Hash }}</p>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="size-5 inline mx-2">
<path fill-rule="evenodd" d="M10.5 3A1.501 1.501 0 0 0 9 4.5h6A1.5 1.5 0 0 0 13.5 3h-3Zm-2.693.178A3 3 0 0 1 10.5 1.5h3a3 3 0 0 1 2.694 1.678c.497.042.992.092 1.486.15 1.497.173 2.57 1.46 2.57 2.929V19.5a3 3 0 0 1-3 3H6.75a3 3 0 0 1-3-3V6.257c0-1.47 1.073-2.756 2.57-2.93.493-.057.989-.107 1.487-.15Z" clip-rule="evenodd" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="size-5 inline mx-2">
<path fill-rule="evenodd" d="M14.447 3.026a.75.75 0 0 1 .527.921l-4.5 16.5a.75.75 0 0 1-1.448-.394l4.5-16.5a.75.75 0 0 1 .921-.527ZM16.72 6.22a.75.75 0 0 1 1.06 0l5.25 5.25a.75.75 0 0 1 0 1.06l-5.25 5.25a.75.75 0 1 1-1.06-1.06L21.44 12l-4.72-4.72a.75.75 0 0 1 0-1.06Zm-9.44 0a.75.75 0 0 1 0 1.06L2.56 12l4.72 4.72a.75.75 0 0 1-1.06 1.06L.97 12.53a.75.75 0 0 1 0-1.06l5.25-5.25a.75.75 0 0 1 1.06 0Z" clip-rule="evenodd" />
</svg>
</div> -->
</div>
{{ end }}
</div>
</div>
{{ end }}