JumarWeb.DashboardLayout (Jumar v0.1.0)

View Source

A layout with a sidebar and navbar for authenticated pages.

Summary

Functions

dashboard_layout(assigns)

Renders the sidebar layout.

Examples

<DashboardLayout.dashboard_layout flash={@flash}>
  <h1>Content</h1>
</DashboardLayout.dashboard_layout>

Attributes

  • flash (:map) (required) - the map of flash messages.
  • current_scope (:map) - the current scope. Defaults to nil.

Slots

  • inner_block (required)

sidebar(assigns)

Attributes

  • current_scope (:map) - the current scope. Defaults to nil.
  • Global attributes are accepted.