arche / internal/ui/templates/wiki.html

commit 154431fd
 1{{ template "base.html" . }} {{ define "title" }}Wiki — Arche{{ end }} {{ define "content" }}
 2<h2>Wiki</h2>
 3{{ if .Pages }}
 4<table>
 5    <thead>
 6        <tr>
 7            <th>Title</th>
 8            <th>Author</th>
 9        </tr>
10    </thead>
11    <tbody>
12        {{ range .Pages }}
13        <tr>
14            <td>
15                <a href="/wiki/page?title={{.Title}}">{{.Title}}</a>
16            </td>
17            <td class="hash">{{.Author}}</td>
18        </tr>
19        {{ end }}
20    </tbody>
21</table>
22{{ else }}
23<p class="empty">No wiki pages yet.</p>
24{{ end }} {{ end }}