oficina / slides Public

Clone
git clone https://amadan.net/oficina/slides

Plain git — no account needed to clone.

Download

Download this file

1{{/* decks — GET /, the deck list.
2
3 One job: show the decks, and carry the single link that starts a
4 new one. The create form is a page of its own (SKILL.md §7) — an
5 empty list is step one of that flow, not an exception to it, so the
6 empty state carries the same call to action the header does rather
7 than a form inlined here.
8
9 The rows live in [rst-list], which holds rows and nothing else. The
10 rung rides as a status-pill inside each row: always visible text,
11 never colour alone. */}}
12{{define "content"}}
13{{template "page-header" dict
14 "Title" .Title
15 "ActionHref" .NewHref "ActionLabel" .NewLabel "ActionIcon" "plus"}}
16{{if .Decks}}
17<div rst-list>
18 {{range .Decks}}
19 {{template "list-row-action" dict
20 "Href" .Href "Main" .Title "Sub" .Sub
21 "StatusLabel" .RungLabel "StatusTone" .RungTone}}
22 {{end}}
23</div>
24{{else}}
25<div rst-box>
26 {{template "empty-state" dict
27 "Title" .EmptyTitle "Body" .EmptyBody
28 "ActionHref" .NewHref "ActionLabel" .NewLabel}}
29</div>
30{{end}}
31{{end}}
32