forked from tangled.org/core
this repo has no description
1{{ define "repo/pulls/fragments/pullCompareBranches" }} 2 <div id="patch-upload"> 3 <label for="targetBranch" class="dark:text-white">select a branch</label> 4 <div class="flex flex-wrap gap-2 items-center"> 5 <select 6 name="sourceBranch" 7 class="p-1 border border-gray-200 bg-white dark:bg-gray-700 dark:text-white dark:border-gray-600" 8 > 9 <option disabled selected>source branch</option> 10 11 {{ $recent := index .Branches 0 }} 12 {{ range .Branches }} 13 {{ $isRecent := eq .Reference.Name $recent.Reference.Name }} 14 <option 15 value="{{ .Reference.Name }}" 16 {{ if $isRecent }} 17 selected 18 {{ end }} 19 class="py-1" 20 > 21 {{ .Reference.Name }} 22 {{ if $isRecent }}(new){{ end }} 23 </option> 24 {{ end }} 25 </select> 26 </div> 27 </div> 28 29 <div class="flex items-center gap-2"> 30 <input type="checkbox" id="isStacked" name="isStacked" value="on"> 31 <label for="isStacked" class="my-0 py-0 normal-case font-normal">Submit as stacked PRs</label> 32 </div> 33 34 <p class="mt-4"> 35 Title and description are optional; if left out, they will be extracted 36 from the first commit. 37 </p> 38{{ end }}