forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

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

Changed files
+7 -1
appview
pages
templates
repo
issues
+3
appview/pages/funcmap.go
···
return s
},
"timeFmt": humanize.Time,
+
"longTimeFmt": func(t time.Time) string {
+
return t.Format("2006-01-02 * 3:04 PM")
+
},
"shortTimeFmt": func(t time.Time) string {
return humanize.CustomRelTime(t, time.Now(), "", "", []humanize.RelTimeMagnitude{
{time.Second, "now", time.Second},
+4 -1
appview/pages/templates/repo/issues/issue.html
···
>{{ $owner }}</a
>
<span class="px-1 select-none before:content-['\00B7']"></span>
-
<time>{{ .Issue.Created | timeFmt }}</time>
+
<time title="{{ .Issue.Created | longTimeFmt }}">
+
{{ .Issue.Created | timeFmt }}
+
</time>
</span>
</div>
···
href="#{{ .CommentId }}"
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"
id="{{ .CommentId }}"
+
title="{{ .Created | longTimeFmt }}"
>
{{ .Created | timeFmt }}
</a>