vole
Clone
Read only, no credentials:
https://rodent.software/git/vole.git
Write over SSH with a registered key:
git clone ssh://git@0.0.0.0:2222/vole.git
A free and open-source forge that lives in your Git repo.
Merge change request 01M70WES5ZZDJ6RP226WB11BBZ: Let people rename and remove their own passkeys
keenan · 2h ago
4b8c9e1d
| 1 | {{define "people"}} |
| 2 | {{template "header" .}} |
| 3 | <div class="page-head"> |
| 4 | <div class="page-head-main"> |
| 5 | <h1>Users</h1> |
| 6 | <p class="page-sub">Everyone with an account here, and what they have been working on.</p> |
| 7 | </div> |
| 8 | </div> |
| 9 | |
| 10 | {{/* The search, the status and the order are one row: the chips are links that |
| 11 | keep the search, and the form carries the status and order so a search does |
| 12 | not reset them. Everything is server-side, so a view can be linked. */}} |
| 13 | <form class="filters" method="get" action="/-/u" role="search"> |
| 14 | <div class="chips"> |
| 15 | {{range .Filters}}<a class="chip{{if .Active}} active{{end}}" href="{{.Href}}">{{.Label}}</a>{{end}} |
| 16 | </div> |
| 17 | {{if .Status}}<input type="hidden" name="status" value="{{.Status}}">{{end}} |
| 18 | {{if .Sort}}<input type="hidden" name="sort" value="{{.Sort}}"><input type="hidden" name="dir" value="{{.Dir}}">{{end}} |
| 19 | <div class="filters-search"> |
| 20 | <input type="search" name="q" value="{{.Query}}" placeholder="Search names" aria-label="Search names" autocomplete="off"> |
| 21 | <button type="submit">{{icon "search"}}Search</button> |
| 22 | {{if .Filtered}}<a class="button secondary" href="/-/u">{{icon "x"}}Clear</a>{{end}} |
| 23 | </div> |
| 24 | </form> |
| 25 | |
| 26 | {{if .Rows}} |
| 27 | <p class="muted user-scope">Counts only include repositories you can read.</p> |
| 28 | <div class="panel"> |
| 29 | <table class="user-list"> |
| 30 | <thead> |
| 31 | <tr> |
| 32 | {{range .Columns}} |
| 33 | <th{{if .Numeric}} class="count"{{end}}{{if .Active}} aria-sort="{{if .Desc}}descending{{else}}ascending{{end}}"{{end}}><a href="{{.Href}}">{{.Label}}{{if .Active}}<span class="sort-mark" aria-hidden="true">{{if .Desc}}↓{{else}}↑{{end}}</span>{{end}}</a></th> |
| 34 | {{end}} |
| 35 | {{if .ShowRole}}<th>Role</th>{{end}} |
| 36 | {{if .InstanceAdmin}}<th>Manage</th>{{end}} |
| 37 | </tr> |
| 38 | </thead> |
| 39 | <tbody> |
| 40 | {{range .Rows}} |
| 41 | <tr> |
| 42 | <td><a class="people-name" href="/-/u/{{.Name}}">{{.Name}}</a>{{if .Bot}} <span class="state">bot</span>{{end}}{{if not .Active}} <span class="state retired">retired</span>{{end}}</td> |
| 43 | <td class="count">{{.Summary.Repos}}</td> |
| 44 | <td class="count">{{.Summary.Issues}}</td> |
| 45 | <td class="count">{{.Summary.Changes}}</td> |
| 46 | <td class="count">{{.Summary.Reviews}}</td> |
| 47 | <td class="muted nowrap">{{.Joined.Format "Jan 2006"}}</td> |
| 48 | {{if $.ShowRole}}<td>{{if ne .Role "none"}}<span class="label">{{.Role}}</span>{{else}}<span class="muted">—</span>{{end}}</td>{{end}} |
| 49 | {{if $.InstanceAdmin}}<td><a href="/-/users/{{.Name}}">Manage</a></td>{{end}} |
| 50 | </tr> |
| 51 | {{end}} |
| 52 | </tbody> |
| 53 | </table> |
| 54 | </div> |
| 55 | {{template "pager" .Pager}} |
| 56 | {{else if .Filtered}} |
| 57 | <div class="empty-state"> |
| 58 | <p>No one matches this view.</p> |
| 59 | {{if .Query}}<p class="muted">No account name contains “{{.Query}}”.</p>{{else}}<p class="muted">No accounts have that status.</p>{{end}} |
| 60 | </div> |
| 61 | {{else}} |
| 62 | <div class="empty-state"> |
| 63 | <p>No accounts yet.</p> |
| 64 | <p class="muted">An instance admin creates the first one.</p> |
| 65 | </div> |
| 66 | {{end}} |
| 67 | {{template "footer" .}} |
| 68 | {{end}} |
| 69 |