diff --git a/internal/web/templates/command_grid.html b/internal/web/templates/command_grid.html index b32ee4f..450b4c4 100644 --- a/internal/web/templates/command_grid.html +++ b/internal/web/templates/command_grid.html @@ -1,10 +1,13 @@ {{/* command-grid renders feature-grouped command checkboxes, shared by the per-user share-commands page and the per-org limits modal. Data: .Groups []commandGroup — each {Name, Commands[]commandChoice} - $.ShowAccess bool — when true, show the Members/Admins tier badge - Risky commands carry data-risky so ui.js confirms before enabling them, and - each group is a [data-check-scope] with Select all / none (ui.js delegated). - No inline JS, so it works when swapped into a modal via htmx under the CSP. */}} + $.ShowAccess bool — when true, also show the Members/Admins tier + badge (org limits); off for per-user shares. + Every command shows a red "Risky" badge when risky, in the same trailing slot, + so both pages read identically. Risky commands carry data-risky so ui.js + confirms before enabling them, and each group is a [data-check-scope] with + Select all / none (ui.js delegated). No inline JS, so it works when swapped + into a modal via htmx under the CSP. */}} {{define "command-grid"}} {{range .Groups}}
@@ -22,8 +25,8 @@ {{.Template}} {{if .Args}}{{.Args}}{{end}} - {{if .Risky}}risky{{end}} + {{if .Risky}}Risky{{end}} {{if $.ShowAccess}} {{if .MemberAllowed}}Members{{else}}Admins{{end}} {{end}}