The admin shell: a sidebar that opens and closes, topbar and user menu around a page.
Here rather than in admin so that modules admin depends on (user) can
render in it. The sidebar shows the navigation modules contribute
(wagoe.platform.core.http.nav), or a page's own :nav, a vector of groups:
[{:id :user ; a collapsible module group; without :label "Users" :icon :users ; an id, a plain list under :label :open? true :items [{:href "/web/admin/users" :label "Users" :icon :users :active? true}]}]
The admin shell: a sidebar that opens and closes, topbar and user menu around a page.
Here rather than in admin so that modules admin depends on (user) can
render in it. The sidebar shows the navigation modules contribute
(`wagoe.platform.core.http.nav`), or a page's own `:nav`, a vector of groups:
[{:id :user ; a collapsible module group; without
:label "Users" :icon :users ; an id, a plain list under :label
:open? true
:items [{:href "/web/admin/users" :label "Users"
:icon :users :active? true}]}](admin-shell content opts)content in the shell. opts: :user, :page-title, :logo-url, and :nav to
replace the request's navigation (see the ns docstring).
`content` in the shell. `opts`: :user, :page-title, :logo-url, and :nav to replace the request's navigation (see the ns docstring).
(shell-page title content opts)A complete page titled title with content in the shell. opts as for
admin-shell, plus :flash.
A complete page titled `title` with `content` in the shell. `opts` as for `admin-shell`, plus :flash.
(sidebar nav)(sidebar nav opts)The sidebar for nav (see the ns docstring). opts supports :logo-url for
a custom brand image.
The sidebar for `nav` (see the ns docstring). `opts` supports :logo-url for a custom brand image.
(user-nav user)The groups of the request's navigation that user may open; nil outside a
request.
The groups of the request's navigation that `user` may open; nil outside a request.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |