clone

an offline map explorer where each world, from a game map to a city's open data, ships as one .atlas file

main
atlas / internal / workbench / templates / sources.tmpl
sources.tmpl 1.5K
1{{/*2 sources — the capture sources, as their own registry entries describe them.34 A card is what a volume owes the people whose work it carries: the licence,5 the attribution, and the id space its numbers live in. The facts come from6 the generate lane's registry, handed to this handler as data; nothing here7 is restated by hand, so a card cannot disagree with the document a source8 emits.9*/}}10{{define "title"}}Sources{{end}}11{{define "content"}}12<section class="page-head">13 <h1>Sources</h1>14 <p class="dim">Every source contributes a reading of a volume; the enrich lane folds the readings15 together and ledgers every contribution. Re-reading unchanged captures is a no-op end to end.</p>16</section>1718{{if .Sources}}19<div class="columns">20{{range .Sources}}21<section class="card source">22 <h2>{{.Label}} <span class="dim">{{.Name}}</span></h2>23 <p>24 <span class="badge">{{.IDSpace}} ids</span>25 {{if .Crawlable}}<span class="badge">crawlable</span>{{else}}<span class="badge dim">archived captures only</span>{{end}}26 </p>27 <dl class="terms">28 <div><dt>licence</dt><dd>{{if .License}}{{.License}}{{else}}<span class="dim">none stated by the source</span>{{end}}</dd></div>29 <div><dt>attribution</dt><dd>{{if .Attribution}}{{.Attribution}}{{else}}<span class="dim">none stated by the source</span>{{end}}</dd></div>30 {{if .Crawlable}}<div><dt>target</dt><dd class="dim">{{.TargetHint}}</dd></div>{{end}}31 </dl>32</section>33{{end}}34</div>35{{else}}36<p class="empty">No sources were handed to this workbench.</p>37{{end}}38{{end}}