navid/veinsforge / f3c1614a84df0563cb90dafd132ffd25b8c909a5c608bb0e2def13b89f74a545 / internal/web/templates/home.html

home.html

← internal/web/templates · 1192 bytes · raw · download

{{define "content"}}
<h1>veinsforge</h1>
<p>A self-hosted web interface for veins repositories. Browse code and history, track issues, open pull requests, and manage repository access.</p>
<p class="muted">{{.Data.Stats.Users}} accounts · {{.Data.Stats.PublicRepos}} public repositories · {{.Data.Stats.Issues}} open issues</p>

<h2>Clone</h2>
<pre><code>vn clone veins://{{.NativeAddress}}/owner/repo -key:your-key</code></pre>
<p class="small">Register an Ed25519 public key in <a href="/settings">settings</a>, then select it once with <code>vn auth use your-key</code>. Public repositories can be cloned anonymously.</p>

{{if .Data.UserRepos}}
<h2>Your repositories</h2>
{{template "repo-list" .Data.UserRepos}}
{{end}}

{{if .Data.UserOrgs}}
<h2>Your organisations</h2>
<ul class="link-list">
  {{range .Data.UserOrgs}}<li><a href="/orgs/{{.Name}}">{{.Name}}</a> <span class="muted">({{.RepoCount}} repositories)</span></li>{{end}}
</ul>
{{end}}

<h2>Repositories</h2>
{{template "repo-list" .Data.Repos}}
<p><a href="/explore">All repositories</a></p>

{{if not .User}}
<h2>Account</h2>
<p><a href="/signup">Create an account</a> or <a href="/login">sign in</a>.</p>
{{end}}
{{end}}