1{{ define "title" }}
2 compare refs on {{ .RepoInfo.FullName }}
3{{ end }}
4
5{{ define "repoContent" }}
6 {{ template "repo/fragments/compareForm" . }}
7{{ end }}
8
9{{ define "repoAfter" }}
10 {{ $brs := take .Branches 5 }}
11 {{ if $brs }}
12 <section class="p-6 mt-4 rounded-br rounded-bl bg-white dark:bg-gray-800 dark:text-white drop-shadow-sm w-full mx-auto">
13 <div class="flex flex-col items-center">
14 <p class="text-center text-black dark:text-white">
15 Recently updated branches in this repository:
16 </p>
17 <div class="mt-4 grid grid-cols-1 divide-y divide-gray-200 dark:divide-gray-700 rounded border border-gray-200 dark:border-gray-700 w-full md:w-1/2">
18 {{ range $br := $brs }}
19 <a href="/{{ $.RepoInfo.FullName }}/compare?head={{ $br.Name | urlquery }}" class="no-underline hover:no-underline">
20 <div class="flex items-center justify-between p-2">
21 {{ $br.Name }}
22 <span class="text-gray-500 dark:text-gray-400">{{ template "repo/fragments/time" $br.Commit.Committer.When }}</span>
23 </div>
24 </a>
25 {{ end }}
26 </div>
27 </div>
28 </section>
29 {{ end }}
30{{ end }}