{{/* The kit page (GET /server/components): every partial of components.html in every state, filled from kit.go — the mockup components page rebuilt with the real templates. Like any page it is thin: partial calls with structs, Bulma layout classes, and the page utilities; the markup of a component is written in components.html and nowhere else. */}} {{define "content"}} {{template "page_head" .Head}} {{template "flash" .Flash}} {{template "flash" .FlashError}} {{template "box_open" .Layouts}} {{template "body_open"}} {{template "facts" .LayoutFacts}} {{template "body_close"}} {{template "box_close"}}
Only inside page_head, at most one per page, and only where the page has a verdict to give.
{{template "body_close"}} {{template "box_close"}} {{template "box_open" .StatusTag}}| Status | Tag | Bulma classes |
|---|---|---|
| {{.Words}} | {{template "tag" .Tag}} | {{status_tag .Tag.Status}} |
The after the end slot is sp-help: an optional link to the section's topic on the Help page. It replaces today's help drawer.
box_body — padded content. A table or a run of sp-record blocks sits directly in the box, without box_body.
For destructive confirmations and the "delete" entry of a settings page. The number may be an icon when the box is not part of a sequence.
{{template "body_close"}} {{template "box_close"}} {{template "box_open" .Credential}} {{template "body_open"}}Only for a secret the panel will never show again.
{{template "body_close"}} {{template "box_close"}}| Time, UTC | Name | sp-clip | Status | |
|---|---|---|---|---|
| 09-21 14:01:52 | the row's link | A long subject is clipped with an ellipsis instead of wrapping the row | sent | Details{{template "row_action" .RowAction}} |
Help text lives in Bulma's help.
| Size | Looks like | Used for |
|---|---|---|
| body · 16px | The quick brown fox, 203.0.113.25 | Text, table cells, inputs, selects, buttons, menus and their dropdowns |
| --sp-fs-s · 14px | The quick brown fox, 203.0.113.25 | Supporting text: labels, help, notes in a box head or foot, mono values (sp-small), logs, the footer |
| --sp-fs-xs · 13px | {{template "kicker" .KickerSample}} tag | Upper-case mono micro-labels (kicker, table head, dt, box title) and tags — nothing else |