{{ define "docker-command" }} {{/* Docker command component - displays a docker command with icon and copy button Expects: string - the docker command to display Usage: {{ template "docker-command" "docker pull atcr.io/alice/myapp:latest" }} */}}
{{ icon "terminal" "size-4 shrink-0 text-base-content/60" }} {{ . }}
{{ end }} {{ define "image-ref" }} {{/* Image reference component - shows a short image reference with a copy button that copies the full pull command. Used in dense card layouts where the full command would truncate. Expects: dict with - Display: string - short form shown in the UI (e.g. "alice.bsky.social/myapp:v1.2.3") - Copy: string - full command copied to clipboard (e.g. "docker pull atcr.io/alice.bsky.social/myapp:v1.2.3") */}}
{{ icon "terminal" "size-4 shrink-0 text-base-content/60" }} {{ .Display }}
{{ end }}