Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software:2222/vole.git

A free and open-source forge that lives in your Git repo.

Blame · server/web/templates/people.html

Line attribution on main · 68 line(s)

a6b42433
Keenan Nemetz
8d ago
1 {{define "people"}}
2 {{template "header" .}}
3 <div class="page-head">
4 <div class="page-head-main">
c14588ef
Keenan Nemetz
7d ago
5 <h1>Users</h1>
a6b42433
Keenan Nemetz
8d ago
6 <p class="page-sub">Everyone with an account here, and what they have been working on.</p>
7 </div>
8 </div>
9
4739664b
Keenan Nemetz
7d ago
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. */}}
ed03b3d1
Keenan Nemetz
8h ago
13 <form class="filters" method="get" action="/-/u" role="search">
4739664b
Keenan Nemetz
7d ago
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}}
a6b42433
Keenan Nemetz
8d ago
19 <div class="filters-search">
4739664b
Keenan Nemetz
7d ago
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>
ed03b3d1
Keenan Nemetz
8h ago
22 {{if .Filtered}}<a class="button secondary" href="/-/u">{{icon "x"}}Clear</a>{{end}}
a6b42433
Keenan Nemetz
8d ago
23 </div>
24 </form>
25
26 {{if .Rows}}
4739664b
Keenan Nemetz
7d ago
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}}
ea21f923
Keenan Nemetz
5d ago
36 {{if .InstanceAdmin}}<th>Manage</th>{{end}}
4739664b
Keenan Nemetz
7d ago
37 </tr>
38 </thead>
39 <tbody>
40 {{range .Rows}}
41 <tr>
ed03b3d1
Keenan Nemetz
8h ago
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>
4739664b
Keenan Nemetz
7d ago
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}}
ed03b3d1
Keenan Nemetz
8h ago
49 {{if $.InstanceAdmin}}<td><a href="/-/users/{{.Name}}">Manage</a></td>{{end}}
4739664b
Keenan Nemetz
7d ago
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}}
a6b42433
Keenan Nemetz
8d ago
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}}