| 1 | {{define "content"}} |
| 2 | <h1>{{.Project}}</h1> |
| 3 | {{template "source-head" .}} |
| 4 | <div class="card"> |
| 5 | <table class="listing"> |
| 6 | <tbody> |
| 7 | {{- range .Entries}} |
| 8 | <tr><td class="name">{{if .URL}}<a href="{{.URL}}">{{.Name}}{{if eq .Kind "directory"}}/{{end}}</a>{{else}}{{.Name}}{{end}}</td><td class="kind">{{.Kind}}</td><td class="size">{{.Size}}</td></tr> |
| 9 | {{- else}} |
| 10 | <tr><td class="muted">This directory is empty.</td></tr> |
| 11 | {{- end}} |
| 12 | </tbody> |
| 13 | </table> |
| 14 | {{- if .Partial}} |
| 15 | <p class="notice">This directory is larger than a page reads, so only part of it is listed.</p> |
| 16 | {{- else if .Omitted}} |
| 17 | <p class="notice">{{.Omitted}} more entries are not listed.</p> |
| 18 | {{- end}} |
| 19 | </div> |
| 20 | {{- with .Readme}} |
| 21 | <section class="panel" aria-labelledby="readme-h"> |
| 22 | <h2 id="readme-h"><a href="{{.URL}}">{{.Name}}</a></h2> |
| 23 | <div class="card">{{if .Notice}}<p class="notice">{{.Notice}}</p>{{else}}{{if .Partial}}<p class="notice">This README is longer than a page shows, and only its start is shown.</p>{{end}}<pre class="text">{{.Text}}</pre>{{end}}</div> |
| 24 | </section> |
| 25 | {{- end}} |
| 26 | {{end}} |