~gitpocket/gitpocket

4
7570dc68ff84866fb3077cfd2bdf95b5cc4d16c0
mainfeed-discovery
gitpocket/templates/reposettings.html -rw-r--r--1.5 KiB ViewLogBlameView rawPermalink 399c2cd6b2 feat(basin): pull requests, forks, visibility, tags and project discovery 2 days ago
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{{define "content"}}
{{$p := .Data.Page}}
<h3>Repository settings</h3>
<form method="post" action="/{{$p.Repo.Path}}/settings" class="twocol">
<div>
<label>Description <input name="description" value="{{$p.Repo.Description}}" maxlength="200"></label>
<label>Tags <input name="tags" value="{{range $i, $t := $p.Repo.Tags}}{{if $i}}, {{end}}{{$t}}{{end}}" placeholder="Up to three comma-separated topics"></label>
<div class="actions"><button class="btn primary">Save ▸</button></div>
</div>
<div>
<span class="legend">Visibility</span>
<label class="radio"><input type="radio" name="visibility" value="public"{{if not (or $p.Repo.Private $p.Repo.Unlisted)}} checked{{end}}> Public<small>Shown on your profile and listed in the public index</small></label>
<label class="radio"><input type="radio" name="visibility" value="unlisted"{{if $p.Repo.Unlisted}} checked{{end}}> Unlisted<small>Visible to anyone who knows the URL, but not shown on your profile</small></label>
<label class="radio"><input type="radio" name="visibility" value="private"{{if $p.Repo.Private}} checked{{end}}> Private<small>Only visible to you</small></label>
</div>
</form>
<h3>Delete repository</h3>
<form method="post" action="/{{$p.Repo.Path}}/delete" class="stack">
<p>This permanently removes the repository and its history from the server.</p>
<label>Type <code>{{$p.Repo.Name}}</code> to confirm <input name="confirm" required></label>
<div class="actions left"><button class="btn danger">Delete repository ▸</button></div>
</form>
{{end}}