···5959 hx-delete="/settings/knots/{{ .Domain }}"
6060 hx-swap="outerHTML"
6161 hx-target="#knot-{{.Id}}"
6262- hx-confirm="Are you sure you want to delete the knot '{{ .Domain }}'?"
6262+ hx-confirm="{{ template "knots/fragments/deleteConfirm" . }}"
6363 >
6464 {{ i "trash-2" "w-5 h-5" }}
6565 <span class="hidden md:inline">delete</span>
···8181 {{ i "loader-circle" "w-4 h-4 animate-spin hidden group-[.htmx-request]:inline" }}
8282 </button>
8383{{ end }}
8484+8585+{{ define "knots/fragments/deleteConfirm" -}}
8686+{{ if .RepoCount -}}
8787+Unregistering '{{ .Domain }}' will remove {{ plural .RepoCount "repository" "" }} from Tangled. The git data will stay on the knot, but these repos will disappear from Tangled. Are you sure?
8888+{{- else -}}
8989+Are you sure you want to delete the knot '{{ .Domain }}'?
9090+{{- end -}}
9191+{{ end }}