A vibe coded tangled fork which supports pijul.
at d6ec5bd432bccbd426362dbad4d1ec44c903d863 35 lines 1.3 kB view raw
1{{ define "repo/pulls/fragments/pullCompareBranches" }} 2 <div id="patch-upload"> 3 <label for="targetBranch" class="dark:text-white" 4 >select a branch</label 5 > 6 <div class="flex flex-wrap gap-2 items-center"> 7 <select 8 name="sourceBranch" 9 class="p-1 border border-gray-200 bg-white dark:bg-gray-700 dark:text-white dark:border-gray-600" 10 > 11 <option disabled selected>source branch</option> 12 13 {{ $recent := index .Branches 0 }} 14 {{ range .Branches }} 15 {{ $isRecent := eq .Reference.Name $recent.Reference.Name }} 16 <option 17 value="{{ .Reference.Name }}" 18 {{ if $isRecent }} 19 selected 20 {{ end }} 21 class="py-1" 22 > 23 {{ .Reference.Name }} 24 {{ if $isRecent }}(new){{ end }} 25 </option> 26 {{ end }} 27 </select> 28 </div> 29 </div> 30 31 <p class="mt-4"> 32 Title and description are optional; if left out, they will be extracted 33 from the first commit. 34 </p> 35{{ end }}