forked from tangled.org/core
this repo has no description

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 f0eb6bfb 03a6dfd6

Changed files
+7 -1
appview
pages
templates
repo
issues
+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 ··· 69 71 href="#{{ .CommentId }}" 70 72 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" 71 73 id="{{ .CommentId }}" 74 + title="{{ .Created | longTimeFmt }}" 72 75 > 73 76 {{ .Created | timeFmt }} 74 77 </a>