Mirror of @tangled.org/core. Running on a Raspberry Pi Zero 2 (Please be gentle).

add long dates to issue date hover

you might wanna vet the format - i didn't test this btw but i think it'll work lmao

authored by j3s.sh and committed by

Tangled 8cf6ecf3 9e292b7c

+7 -1
+3
appview/pages/funcmap.go
··· 68 68 return s 69 69 }, 70 70 "timeFmt": humanize.Time, 71 + "longTimeFmt": func(t time.Time) string { 72 + return t.Format("2006-01-02 * 3:04 PM") 73 + }, 71 74 "shortTimeFmt": func(t time.Time) string { 72 75 return humanize.CustomRelTime(t, time.Now(), "", "", []humanize.RelTimeMagnitude{ 73 76 {time.Second, "now", time.Second},
+4 -1
appview/pages/templates/repo/issues/issue.html
··· 29 29 >{{ $owner }}</a 30 30 > 31 31 <span class="px-1 select-none before:content-['\00B7']"></span> 32 - <time>{{ .Issue.Created | timeFmt }}</time> 32 + <time title="{{ .Issue.Created | longTimeFmt }}"> 33 + {{ .Issue.Created | timeFmt }} 34 + </time> 33 35 </span> 34 36 </div> 35 37 ··· 71 69 href="#{{ .CommentId }}" 72 70 class="text-gray-500 text-sm hover:text-gray-500 hover:underline no-underline dark:text-gray-400 dark:hover:text-gray-300 dark:hover:bg-gray-800" 73 71 id="{{ .CommentId }}" 72 + title="{{ .Created | longTimeFmt }}" 74 73 > 75 74 {{ .Created | timeFmt }} 76 75 </a>