| 1 | {{define "content"}} |
| 2 | <h1>{{.Name}}</h1> |
| 3 | {{template "source-head" .}} |
| 4 | <div class="card"> |
| 5 | <div class="muted">{{.Size}}{{with .Plain}} · <a href="{{.}}">Plain text</a>{{end}}{{with .Rendered}} · <a href="{{.}}">Rendered</a>{{end}}</div> |
| 6 | {{- if .Notice}} |
| 7 | <p class="notice">{{.Notice}}</p> |
| 8 | {{- else}} |
| 9 | {{- with .Partial}} |
| 10 | <p class="notice">{{.}}</p> |
| 11 | {{- end}} |
| 12 | {{- with .Doc}} |
| 13 | {{template "document" .}} |
| 14 | {{- else}} |
| 15 | <div class="code"><table class="code"><tbody>{{range $i, $line := .Lines}}<tr id="L{{inc $i}}"><td class="ln"><a href="#L{{inc $i}}">{{inc $i}}</a></td><td class="src">{{$line}}</td></tr>{{end}}</tbody></table></div> |
| 16 | {{- end}} |
| 17 | {{- end}} |
| 18 | </div> |
| 19 | {{end}} |