Eric Bower
·
2025-02-04
pr-table.html
1{{define "pr-table"}}
2<table class="w-full">
3 <thead>
4 <tr>
5 <th class="text-left">Repo</th>
6 <th class="text-left">Status</th>
7 <th class="text-left">User</th>
8 <th class="text-left">Title</th>
9 <th class="text-left">Patchsets</th>
10 <th class="text-left">Created At</th>
11 </tr>
12 </thead>
13
14 <tbody>
15 {{range .}}
16 <tr>
17 <td>
18 <a href="{{.RepoLink.Url}}">{{.RepoLink.Text}}</a>
19 </td>
20 <td>{{template "pr-status" .Status}}</td>
21 <td>{{template "user-pill" .UserData}}</td>
22 <td>
23 <code>#{{.ID}}</code>
24 <a href="{{.PrLink.Url}}">{{.PrLink.Text}}</a>
25 </td>
26 <td><code>{{.NumPatchsets}}</code></td>
27 <td><date>{{.Date}}</date></td>
28 </tr>
29 {{else}}
30 <tr>
31 <td colspan="6">No patch requests found.</td>
32 </tr>
33 {{end}}
34 </tbody>
35</table>
36{{end}}