{{ define "title" }}changes · {{ .RepoInfo.FullName }}{{ end }} {{ define "extrameta" }} {{ $title := printf "changes · %s" .RepoInfo.FullName }} {{ $url := printf "https://tangled.org/%s/changes" .RepoInfo.FullName }} {{ template "repo/fragments/og" (dict "RepoInfo" .RepoInfo "Title" $title "Url" $url) }} {{ end }} {{ define "repoContent" }}

changes

{{ range $index, $change := .Changes }}
{{ $messageParts := splitN $change.Message "\n\n" 2 }}
{{ index $messageParts 0 }} {{ if gt (len $messageParts) 1 }} {{ end }}
{{ if gt (len $messageParts) 1 }} {{ end }}
{{ $hashStyle := "text-gray-700 dark:text-gray-300 bg-gray-100 dark:bg-gray-900" }} {{ slice $change.Hash 0 12 }} {{ template "pijulAttribution" $change }} {{ if $change.HasTimestamp }}
{{ template "repo/fragments/shortTime" $change.Timestamp }} {{ end }}
{{ end }}
{{ end }} {{ define "pijulAttribution" }} {{ if .Authors }} {{ $author := index .Authors 0 }} {{ if $author.Did }} {{ template "user/fragments/picHandleLink" (deref $author.Did) }} {{ else }} {{ placeholderAvatar "tiny" }} {{ $author.Name }} {{ end }} {{ if gt (len .Authors) 1 }} +{{ sub (len .Authors) 1 }}{{ end }} {{ else }} {{ placeholderAvatar "tiny" }} unknown {{ end }} {{ end }} {{ define "repoAfter" }} {{ $changes_len := len .Changes }}
{{ if gt .Page 1 }}{{ i "chevron-left" "w-4 h-4" }} previous{{ else }}
{{ end }} {{ if eq $changes_len 60 }}next {{ i "chevron-right" "w-4 h-4" }}{{ end }}
{{ end }}