{{ define "title" }}{{ or .Card.UserHandle .Card.UserDid }}{{ end }} {{ define "extrameta" }} {{ end }} {{ define "content" }} {{ template "profileTabs" . }} {{ $style := "hidden md:block md:col-span-3" }} {{ if eq $.Active "overview" }} {{ $style = "md:col-span-3" }} {{ end }} {{ template "user/fragments/profileCard" .Card }} {{ block "punchcard" .Card.Punchcard }} {{ end }} {{ block "profileContent" . }} {{ end }} {{ end }} {{ define "profileTabs" }} {{ $activeTabStyles := "-mb-px bg-white dark:bg-gray-800" }} {{ $tabs := .Card.GetTabs }} {{ $tabmeta := dict "x" "y" }} {{ range $item := $tabs }} {{ $key := index $item 0 }} {{ $value := index $item 1 }} {{ $icon := index $item 2 }} {{ $meta := index $item 3 }} {{ i $icon "w-4 h-4 mr-2" }} {{ $key }} {{ if $meta }} {{ $meta }} {{ end }} {{ end }} {{ end }} {{ define "punchcard" }} {{ $now := now }}
PUNCHCARD {{ .Total | int64 | commaFmt }} commits