KartaWeb. Layouts
(Karta v1.0.0)
The layouts of the admin interface.
app/1- the signed-in pages: the sidebar with the navigation of the page's context (KartaWeb.Navigation), the bar with the breadcrumbs and the signed-in user, a notice on every page of a suspended mail server, then the page.auth/1- the pages before sign-in: the logo and one narrow column.
The colour scheme follows the browser's (light or dark). The pages run no script of their own beyond
app.js, as the content security policy requires.
Summary
Functions
The layout of the signed-in pages.
The layout of the pages before sign-in: the logo above one narrow column.
Shows the flash group with standard titles and content.
The mascot: the flamingo carrying a bag of letters. One drawing for both
colour schemes (a light halo on dark backgrounds comes from the
stylesheet); its height comes from class. The name "Karta" is never
part of the image: it is text next to it, in the wordmark style
(k-wordmark), so the image is decorative.
Functions
The layout of the signed-in pages.
<Layouts.app
flash={@flash}
current_scope={@current_scope}
organisation={@organisation}
server={@server}
active={:messages}
>
...
</Layouts.app>active is the area of the sidebar the page belongs to (see
KartaWeb.Navigation); crumb names the record the page shows, as the
last breadcrumb (or the records on the way to it and it, a list of
{label, path}).
Attributes
flash(:map) (required) - the map of flash messages.current_scope(:map) - the signed-in user'sKarta.Accounts.Scope, ornil. Defaults tonil.organisation(:any) - the organisation the page is in. Defaults tonil.server(:any) - the mail server the page is in. Defaults tonil.active(:atom) - the navigation item of the page. Defaults tonil.crumb(:any) - the last breadcrumb, the record the page shows; or a list of{label, path}. Defaults tonil.
Slots
inner_block(required)
The layout of the pages before sign-in: the logo above one narrow column.
Attributes
flash(:map) (required)
Slots
inner_block(required)
Shows the flash group with standard titles and content.
Examples
<.flash_group flash={@flash} />Attributes
flash(:map) (required) - the map of flash messages.id(:string) - the optional id of flash container. Defaults to"flash-group".
The mascot: the flamingo carrying a bag of letters. One drawing for both
colour schemes (a light halo on dark backgrounds comes from the
stylesheet); its height comes from class. The name "Karta" is never
part of the image: it is text next to it, in the wordmark style
(k-wordmark), so the image is decorative.
Attributes
class(:any) - Defaults to"h-9".