{{- /* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial */ -}} {{- /* SPDX-FileCopyrightText: 2025-2026 Christian Galo */ -}} {{/* workspace_list.html Workspaces region content, swapped into #workspaceContent on the dashboard; the section title lives on the page (index.html) so it survives the list/create-form swaps. The create action is outline-styled, not filled: this region renders alongside other dashboard sections that also carry a call-to-action, and a screen SHALL present at most one filled primary button (chrome-conventions D2). Statuses render through statusBadge. A create's success is an HX-Trigger toast (fireSuccessToast, finding FA-25), not a banner here: this partial is the create form's own swap target, so an in-body alert-success would flash and then be swapped away by the very next navigation. */}} {{ if .Error }} {{ end }}
{{ if eq (len .Workspaces) 0 }} {{ template "emptyState" .Empty }} {{ else }}
{{ range .Workspaces }} {{ end }}
Name Status Created Actions
{{ .Name }} {{ if .IsActive }} {{ template "statusBadge" .CurrentBadge }}{{ end }} {{ template "statusBadge" .StatusBadge }} {{ .CreatedAt }} {{ if .CanSwitch }} {{ end }}
{{ end }}