this repo has no description
1{{ define "title" }}new comparison{{ end }}
2
3{{ define "repoContent" }}
4 <h2 class="font-bold text-sm mb-4 uppercase dark:text-white">
5 Compare changes
6 </h2>
7 <p>Choose any two refs to compare.</p>
8
9 <div class="flex items-center gap-2 py-4">
10 <div>
11 base:
12 <select
13 class="p-1 border max-w-32 border-gray-200 bg-white dark:bg-gray-800 dark:text-white dark:border-gray-700"
14 >
15 <optgroup
16 label="branches ({{ len .Branches }})"
17 class="bold text-sm"
18 >
19 {{ range .Branches }}
20 <option
21 value="{{ .Reference.Name }}"
22 class="py-1"
23 {{ if .IsDefault }}
24 selected
25 {{ end }}
26 >
27 {{ .Reference.Name }}
28 </option>
29 {{ end }}
30 </optgroup>
31 <optgroup label="tags ({{ len .Tags }})" class="bold text-sm">
32 {{ range .Tags }}
33 <option value="{{ .Reference.Name }}" class="py-1">
34 {{ .Reference.Name }}
35 </option>
36 {{ else }}
37 <option class="py-1" disabled>no tags found</option>
38 {{ end }}
39 </optgroup>
40 </select>
41 </div>
42 {{ i "arrow-left" "w-4 h-4" }}
43 <div>
44 compare:
45 <select
46 class="p-1 border max-w-32 border-gray-200 bg-white dark:bg-gray-800 dark:text-white dark:border-gray-700"
47 >
48 <optgroup
49 label="branches ({{ len .Branches }})"
50 class="bold text-sm"
51 >
52 {{ range .Branches }}
53 <option value="{{ .Reference.Name }}" class="py-1">
54 {{ .Reference.Name }}
55 </option>
56 {{ end }}
57 </optgroup>
58 <optgroup label="tags ({{ len .Tags }})" class="bold text-sm">
59 {{ range .Tags }}
60 <option value="{{ .Reference.Name }}" class="py-1">
61 {{ .Reference.Name }}
62 </option>
63 {{ else }}
64 <option class="py-1" disabled>no tags found</option>
65 {{ end }}
66 </optgroup>
67 </select>
68 </div>
69 </div>
70{{ end }}
71
72{{ define "repoAfter" }}
73 <div id="compare-diff"></div>
74{{ end }}