{{ define "title" }}strings by {{ or .Card.UserHandle .Card.UserDid }}{{ end }} {{ define "extrameta" }} {{ end }} {{ define "content" }}
{{ template "user/fragments/profileCard" .Card }}
{{ block "allStrings" . }}{{ end }}
{{ end }} {{ define "allStrings" }}

ALL STRINGS

{{ range .Strings }} {{ template "singleString" (list $ .) }} {{ else }}

This user does not have any strings yet.

{{ end }}
{{ end }} {{ define "singleString" }} {{ $root := index . 0 }} {{ $s := index . 1 }}
{{ $s.Filename }}
{{ with $s.Description }}
{{ . }}
{{ end }} {{ $stat := $s.Stats }}
{{ $stat.LineCount }} line{{if ne $stat.LineCount 1}}s{{end}} {{ with $s.Edited }} edited {{ template "repo/fragments/shortTimeAgo" . }} {{ else }} {{ template "repo/fragments/shortTimeAgo" $s.Created }} {{ end }}
{{ end }}