request.list.tpl.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{{template "prelude.tpl.html"}}
<title>{{.Repo}} Change Requests - Senary</title>
</head>
<body>
<header class="container-fluid">
{{ template "header.tpl.html" .}}
</header>
<main class="container-fluid repomain">
{{template "repomenu.tpl.html" .}}
<div>
<section>
<a href="/repos/{{.Repo}}/requests/new?type=issue"><button>New Issue</button></a>
<a href="/repos/{{.Repo}}/requests/new?type=patch"><button>Submit Patch</button></a>
</section>
<table class="striped">
<tr><th>Summary</th><th>Created</th>
{{if .User.IsMaintainer}}
<th>Maintainer Actions</th>
{{end}}
</tr>
{{$p := .}}
{{range .Requests}}
{{if .Approved}}
<tr><td><a href="./{{.ID}}">{{.Summary}}</a></td><td>{{.Created.Format "Jan 02, 2006 15:04" }}</td>
{{if eq $p.User.IsMaintainer true}}
<td class="grid">
<form method="post" action="/repos/{{$p.Repo}}/requests/approve">
<input hidden name="requestid" value="{{.ID}}" />
<button>Approve</button>
</form>
<form method="post" action="/repos/{{$p.Repo}}/requests/tombstone">
<input hidden name="requestid" value="{{.ID}}" />
<button>Delete</button>
</form>
</td>
{{end}}
{{end}}
</tr>
{{end}}
</table>
</div>
</main>
<footer>
</footer>
</body>
</html>
|