{{ define "title" }}{{ .String.RenderTitle }} · by {{ resolve .String.Did.String }} · Tangled{{ end }} {{ define "extrameta" }} {{ $ownerId := resolve .String.Did.String }} {{ end }} {{ define "content" }} {{ $ownerId := resolve .String.Did.String }}
{{ with .String.Description }} {{ . }} {{ else }} This string has no description {{ end }}
{{ if .String.Edited }} edited {{ template "repo/fragments/time" .String.Edited }} {{ else }} {{ template "repo/fragments/time" .String.Created }} {{ end }}
{{ if and .LoggedInUser (eq .LoggedInUser.Did .String.Did) }} {{ i "pencil" "w-4 h-4" }} {{ i "loader-circle" "w-4 h-4 animate-spin hidden group-[.htmx-request]:inline" }} {{ end }} {{ template "fragments/starBtn" (dict "SubjectAt" .String.AtUri "IsStarred" .IsStarred "StarCount" .StarCount) }}
{{ range .FileParams }} {{ template "strings/fragments/file" . }} {{ end }} {{ template "fragments/multiline-select" }}
{{ template "fragments/comment/commentList" (dict "LoggedInUser" .LoggedInUser "Reactions" .Reactions "UserReacted" .UserReacted "VouchRelationships" .VouchRelationships "CommentList" .CommentList) }} {{ template "newComment" . }}
{{ end }} {{ define "newComment" }} {{ if .LoggedInUser }}
{{ template "user/fragments/picHandleLink" .LoggedInUser.Did }}
{{ template "fragments/markdownEditor" (dict "Name" "body" "BlobName" "blob" "Required" true "Placeholder" "Add to the discussion. Markdown is supported.") }}
{{ else }}
Sign up or login to add to the discussion
{{ end }} {{ end }}