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

appview: use .Committer.When everywhere

authored by anirudh.fi and committed by Tangled b9557015 d6ec5bd4

Changed files
+10 -10
appview
+2 -2
appview/pages/templates/repo/branches.html
··· 59 59 </td> 60 60 <td class="py-3 whitespace-nowrap text-gray-500 dark:text-gray-400"> 61 61 {{ if .Commit }} 62 - {{ .Commit.Author.When | timeFmt }} 62 + {{ .Commit.Committer.When | timeFmt }} 63 63 {{ end }} 64 64 </td> 65 65 </tr> ··· 98 98 </a> 99 99 </span> 100 100 <div class="inline-block px-1 select-none after:content-['·']"></div> 101 - <span>{{ .Commit.Author.When | timeFmt }}</span> 101 + <span>{{ .Commit.Committer.When | timeFmt }}</span> 102 102 </div> 103 103 {{ end }} 104 104 </div>
+1 -1
appview/pages/templates/repo/commit.html
··· 34 34 <a href="mailto:{{ $commit.Author.Email }}" class="no-underline hover:underline text-gray-500 dark:text-gray-300">{{ $commit.Author.Name }}</a> 35 35 {{ end }} 36 36 <span class="px-1 select-none before:content-['\00B7']"></span> 37 - {{ timeFmt $commit.Author.When }} 37 + {{ timeFmt $commit.Committer.When }} 38 38 <span class="px-1 select-none before:content-['\00B7']"></span> 39 39 </p> 40 40
+1 -1
appview/pages/templates/repo/empty.html
··· 17 17 <a href="/{{ $.RepoInfo.FullName }}/tree/{{$br.Name}}" class="no-underline hover:no-underline"> 18 18 <div class="flex items-center justify-between p-2"> 19 19 {{ $br.Name }} 20 - <time class="text-gray-500 dark:text-gray-400">{{ timeFmt $br.Commit.Author.When }}</time> 20 + <time class="text-gray-500 dark:text-gray-400">{{ timeFmt $br.Commit.Committer.When }}</time> 21 21 </div> 22 22 </a> 23 23 {{ end }}
+2 -2
appview/pages/templates/repo/index.html
··· 237 237 <div 238 238 class="inline-block px-1 select-none after:content-['·']" 239 239 ></div> 240 - <span>{{ timeFmt .Author.When }}</span> 240 + <span>{{ timeFmt .Committer.When }}</span> 241 241 {{ $tagsForCommit := index $.TagMap .Hash.String }} 242 242 {{ if gt (len $tagsForCommit) 0 }} 243 243 <div ··· 278 278 </a> 279 279 {{ if .Commit }} 280 280 <span class="px-1 text-gray-500 dark:text-gray-400 select-none after:content-['·']"></span> 281 - <time class="text-xs text-gray-500 dark:text-gray-400">{{ timeFmt .Commit.Author.When }}</time> 281 + <time class="text-xs text-gray-500 dark:text-gray-400">{{ timeFmt .Commit.Committer.When }}</time> 282 282 {{ end }} 283 283 {{ if .IsDefault }} 284 284 <span class="px-1 text-gray-500 dark:text-gray-400 select-none after:content-['·']"></span>
+2 -2
appview/pages/templates/repo/log.html
··· 71 71 <p class="hidden mt-1 text-sm text-gray-600 dark:text-gray-400">{{ nl2br (index $messageParts 1) }}</p> 72 72 {{ end }} 73 73 </td> 74 - <td class=" py-3 align-top text-gray-500 dark:text-gray-400">{{ timeFmt $commit.Author.When }}</td> 74 + <td class=" py-3 align-top text-gray-500 dark:text-gray-400">{{ timeFmt $commit.Committer.When }}</td> 75 75 </tr> 76 76 {{ end }} 77 77 </tbody> ··· 141 141 </a> 142 142 </span> 143 143 <div class="inline-block px-1 select-none after:content-['·']"></div> 144 - <span>{{ shortTimeFmt $commit.Author.When }}</span> 144 + <span>{{ shortTimeFmt $commit.Committer.When }}</span> 145 145 </div> 146 146 </div> 147 147 {{ end }}
+2 -2
appview/state/repo.go
··· 99 99 return 1 100 100 } 101 101 if a.Commit != nil { 102 - if a.Commit.Author.When.Before(b.Commit.Author.When) { 102 + if a.Commit.Committer.When.Before(b.Commit.Committer.When) { 103 103 return 1 104 104 } else { 105 105 return -1 ··· 597 597 return 1 598 598 } 599 599 if a.Commit != nil { 600 - if a.Commit.Author.When.Before(b.Commit.Author.When) { 600 + if a.Commit.Committer.When.Before(b.Commit.Committer.When) { 601 601 return 1 602 602 } else { 603 603 return -1