fierj
PublicTiny personal git forge
{{template "head" .}}
{{define "title"}}{{.Repo}} - fierj{{end}}
{{template "repo-header" .}}
{{template "repo-tabs" .}}
{{if .Empty}}
<div class="empty-state">
<p>Empty repository. Push your first commit:</p>
{{if .CloneSSH}}<pre><code>git remote add origin {{.CloneSSH}}
git push -u origin main</code></pre>{{end}}
</div>
{{else}}
<!-- Branch picker & clone -->
<div class="code-bar">
<span class="branch-picker">
<svg class="icon" viewBox="0 0 16 16" fill="currentColor"><path d="M9.5 3.25a2.25 2.25 0 1 1 3 2.122V6A2.5 2.5 0 0 1 10 8.5H6a1 1 0 0 0-1 1v1.128a2.251 2.251 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.5 0v1.836A2.493 2.493 0 0 1 6 7h4a1 1 0 0 0 1-1v-.628A2.25 2.25 0 0 1 9.5 3.25Z"/></svg>
{{.Ref}}
</span>
{{if .Breadcrumb}}
<span class="breadcrumb" style="font-size:0.85rem;color:var(--text-secondary);">
<a href="/{{.Repo}}">{{.Repo}}</a>
{{range .Breadcrumb}} / <a href="/{{$.Repo}}/tree/{{$.Ref}}/{{.URL}}">{{.Name}}</a>{{end}}
</span>
{{end}}
<span class="code-bar spacer"></span>
<span class="clone-btn">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M4.72 3.22a.75.75 0 0 1 1.06 1.06L2.06 8l3.72 3.72a.75.75 0 1 1-1.06 1.06L.47 8.53a.75.75 0 0 1 0-1.06Zm6.56 0a.75.75 0 1 0-1.06 1.06L13.94 8l-3.72 3.72a.75.75 0 1 0 1.06 1.06l4.25-4.25a.75.75 0 0 0 0-1.06Z"/></svg>
{{if .CloneSSH}}{{.CloneSSH}}{{end}}
</span>
<a href="/{{.Repo}}/feed.xml" title="RSS feed" class="clone-btn" style="text-decoration:none;">
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M2.002 2.725a.75.75 0 0 1 .797-.699C8.79 2.42 13.58 7.21 13.974 13.201a.75.75 0 0 1-1.497.098 10.502 10.502 0 0 0-9.776-9.776.747.747 0 0 1-.7-.798ZM2.84 7.05h-.002a7.002 7.002 0 0 1 6.113 6.111.75.75 0 0 1-1.5.008 5.501 5.501 0 0 0-4.8-4.8.75.75 0 0 1 .189-1.319ZM2 13a1 1 0 1 0 2 0 1 1 0 0 0-2 0Z"/></svg>
</a>
</div>
<!-- File table -->
<div class="file-table">
<table>
{{range .Entries}}
<tr>
{{if eq .Type "tree"}}
<td class="col-name"><span class="entry"><svg class="icon icon-dir" viewBox="0 0 16 16" fill="currentColor"><path d="M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1Z"/></svg><a href="/{{$.Repo}}/tree/{{$.Ref}}/{{pathJoin $.Path .Name}}">{{.Name}}</a></span></td>
{{else}}
<td class="col-name"><span class="entry"><svg class="icon icon-file" viewBox="0 0 16 16" fill="currentColor"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688Z"/></svg><a href="/{{$.Repo}}/blob/{{$.Ref}}/{{pathJoin $.Path .Name}}">{{.Name}}</a></span></td>
{{end}}
<td class="col-msg">{{if .LastCommit}}<a href="/{{$.Repo}}/commit/{{.LastCommit.Hash}}" style="color: var(--text-secondary);">{{.LastCommit.Message}}</a>{{end}}</td>
<td class="col-date">{{if .LastCommit}}{{.LastCommit.Date}}{{end}}</td>
</tr>
{{end}}
</table>
</div>
<!-- README -->
{{if .Readme}}
<div class="readme-box">
<div class="readme-box-header">
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M0 1.75A.75.75 0 0 1 .75 1h4.253c1.227 0 2.317.59 3 1.501A3.743 3.743 0 0 1 11.006 1h4.245a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-4.507a2.25 2.25 0 0 0-1.591.659l-.622.621a.75.75 0 0 1-1.06 0l-.622-.621A2.25 2.25 0 0 0 5.258 13H.75a.75.75 0 0 1-.75-.75Zm7.251 10.324.004-5.073-.002-2.253A2.25 2.25 0 0 0 5.003 2.5H1.5v9h3.757a3.75 3.75 0 0 1 1.994.574ZM8.755 4.75l-.004 7.322a3.752 3.752 0 0 1 1.992-.572H14.5v-9h-3.495a2.25 2.25 0 0 0-2.25 2.25Z"/></svg>
README.md
</div>
<div class="readme-box-body markdown-body">{{.Readme}}</div>
</div>
{{end}}
{{end}}
{{template "foot" .}}