| 1 | {{define "info"}} |
| 2 | {{template "layout-start" .}} |
| 3 | <article class="spec"> |
| 4 | <h1>{{t "title.info"}}</h1> |
| 5 | <p class="lead">{{t "info.lead"}}</p> |
| 6 | <pre class="spec-example">{{.Spec.Example}}</pre> |
| 7 | {{range .Spec.Sections}} |
| 8 | <h2 id="{{.ID}}">{{.Title}}</h2> |
| 9 | {{if .Intro}}<p>{{.Intro}}</p>{{end}} |
| 10 | {{if eq .Kind "keywords"}} |
| 11 | <table class="spec-table"> |
| 12 | <thead><tr><th>{{t "info.col.keyword"}}</th><th>{{t "info.col.meaning"}}</th></tr></thead> |
| 13 | <tbody> |
| 14 | {{range .Items}}<tr><td><code>{{.Name}}</code></td><td>{{.Summary}}</td></tr>{{end}} |
| 15 | </tbody> |
| 16 | </table> |
| 17 | {{else if eq .Kind "variables"}} |
| 18 | <table class="spec-table"> |
| 19 | <thead><tr><th>{{t "info.col.keyword"}}</th><th>{{t "info.col.where"}}</th><th>{{t "info.col.meaning"}}</th></tr></thead> |
| 20 | <tbody> |
| 21 | {{range .Variables}}<tr><td><code>{{.Name}}</code></td><td>{{.Where}}</td><td>{{.Summary}}</td></tr>{{end}} |
| 22 | </tbody> |
| 23 | </table> |
| 24 | {{else if eq .Kind "list"}} |
| 25 | <ul class="spec-list">{{range .Lines}}<li>{{.}}</li>{{end}}</ul> |
| 26 | {{else if eq .Kind "presets"}} |
| 27 | <table class="spec-table"> |
| 28 | <thead><tr><th>{{t "info.col.name"}}</th><th>{{t "info.col.base"}}</th><th>{{t "info.col.tools"}}</th></tr></thead> |
| 29 | <tbody> |
| 30 | {{range .Presets}} |
| 31 | <tr> |
| 32 | <td><code>{{.Name}}</code></td> |
| 33 | <td><code>{{.From}}</code>{{if .Runtime}}<div class="muted">{{.Runtime}}</div>{{end}}</td> |
| 34 | <td>{{if .Tools}}{{range $i, $tool := .Tools}}{{if $i}}, {{end}}<code>{{$tool}}</code>{{end}}{{else}}{{t "info.presets.mapped"}}{{end}}</td> |
| 35 | </tr> |
| 36 | {{end}} |
| 37 | </tbody> |
| 38 | </table> |
| 39 | {{end}} |
| 40 | {{end}} |
| 41 | <script type="application/json" id="bluegit-ci-spec">{{.SpecJSON}}</script> |
| 42 | </article> |
| 43 | {{template "layout-end" .}} |
| 44 | {{end}} |