aredn/files/app/partial/nav-status.ut

12 lines
232 B
Plaintext
Executable File

<div id="nav-status" {{request.headers["hx-boosted"] ? 'hx-swap-oob="true"' : ""}}>{%
if (request.page !== "status") {
print(request.page);
}
else if (auth.isAdmin) {
print("admin");
}
else {
print("status");
}
%}</div>