23 lines
1021 B
Plaintext
23 lines
1021 B
Plaintext
<%#
|
|
Users admin list: the same building blocks as the dashboard, around the shell, but
|
|
backed by live Kratos identities (admin-users.ts). Filter/sort/page all round-trip the URL.
|
|
%><%
|
|
const nav = include("partials/nav-tree", { nodes: chrome.nav });
|
|
const filters = include("partials/filter-bar", model.filterBar);
|
|
const table = include("partials/data-table", model.table);
|
|
const pager = include("partials/pagination", model.pagination);
|
|
// Only offer "New user" to a users:write holder — a users:read one would get the 403 page.
|
|
const actions = model.canWrite === false ? "" : '<a class="btn btn-primary" href="' + localeHref("/admin/users/new") + '"><svg class="ico ico-sm" aria-hidden="true"><use href="#i-plus"/></svg>' + t("admin.users.new") + '</a>';
|
|
-%>
|
|
<%- include("partials/shell", {
|
|
actions,
|
|
body: filters + table + pager,
|
|
brand: chrome.brand,
|
|
breadcrumbs: model.breadcrumbs,
|
|
csrfToken: chrome.csrfToken,
|
|
nav,
|
|
theme: chrome.theme,
|
|
title: model.title,
|
|
user: chrome.user,
|
|
}) %>
|