1{{ define "title" }}{{.Repo}} — wiki{{ end }}
2{{ define "navextra" }}<a href="/{{.Repo}}">{{.Repo}}</a> <a href="/{{.Repo}}/log">log</a> <a href="/{{.Repo}}/tree">tree</a> <a href="/{{.Repo}}/issues">issues</a> <a href="/{{.Repo}}/stacks">stacks</a> <a href="/{{.Repo}}/wiki">wiki</a>{{ end }}
3{{ define "srv_repo_wiki_list.html" }}{{ template "head" . }}
4<div class="container">
5 <h1 class="repo-name">{{.Repo}} / wiki</h1>
6 {{ if .Pages }}
7 <table style="margin-bottom: 24px">
8 <thead>
9 <tr>
10 <th>Page</th>
11 <th>Last edited by</th>
12 </tr>
13 </thead>
14 <tbody>
15 {{ range .Pages }}
16 <tr>
17 <td>
18 <a href="/{{$.Repo}}/wiki/{{.Title}}">{{.Title}}</a>
19 </td>
20 <td style="font-size: 12px; color: #666">{{.Author}}</td>
21 </tr>
22 {{ end }}
23 </tbody>
24 </table>
25{{ else }}
26 <p style="color: #888; margin-top: 12px; margin-bottom: 24px">No wiki pages yet.</p>
27 {{ end }} {{ if .User }}
28 <a href="/{{.Repo}}/wiki/Home?edit=1" style="font-size: 13px">+ New page (Home)</a>
29 {{ end }}
30</div>
31{{ template "foot" . }}
32{{ end }}