forked from tangled.org/core
this repo has no description
at fork-repo 1.3 kB view raw
1{{ define "fragments/pullCompareBranches" }} 2<div id="patch-upload"> 3 <label for="targetBranch" class="dark:text-white">configure branches</label> 4 <div class="flex flex-wrap gap-2 items-center"> 5 <select 6 required 7 name="targetBranch" 8 class="p-1 border border-gray-200 bg-white dark:bg-gray-700 dark:text-white dark:border-gray-600" 9 > 10 <option disabled selected>target branch</option> 11 {{ range .Branches }} 12 <option value="{{ .Reference.Name }}" class="py-1"> 13 {{ .Reference.Name }} 14 </option> 15 {{ end }} 16 </select> 17 18 {{ i "move-left" "w-5 h-5" }} 19 20 <select 21 name="sourceBranch" 22 class="p-1 border border-gray-200 bg-white dark:bg-gray-700 dark:text-white dark:border-gray-600" 23 > 24 <option disabled selected>source branch</option> 25 {{ range .Branches }} 26 <option value="{{ .Reference.Name }}" class="py-1"> 27 {{ .Reference.Name }} 28 </option> 29 {{ end }} 30 </select> 31 32 <span class="text-sm"> 33 ... or upload a patch 34 <button 35 class="btn text-sm" 36 hx-get="/{{ .RepoInfo.FullName }}/pulls/new/patch-upload" 37 hx-swap="outerHTML" 38 hx-target="#patch-upload" 39 > 40 upload patch 41 </button> 42 </span> 43 </div> 44 45</div> 46{{ end }}