1{{ define "fragments/pullPatchUpload" }}
2<div id="patch-upload">
3 <label for="patch" class="dark:text-white">paste your patch here</label>
4 <textarea
5 name="patch"
6 id="patch"
7 rows="10"
8 class="w-full resize-y font-mono dark:bg-gray-700 dark:text-white dark:border-gray-600"
9 placeholder="Paste your git diff output here."
10 ></textarea>
11
12 {{ if .RepoInfo.Roles.IsPushAllowed }}
13 <div class="mt-4 text-sm">
14 you can also submit a pull request from a branch
15 <button
16 class="btn text-sm"
17 hx-get="/{{ .RepoInfo.FullName }}/pulls/new/compare-branches"
18 hx-swap="outerHTML"
19 hx-target="#patch-upload"
20 >
21 compare branches
22 </button>
23 </div>
24 {{ end }}
25</div>
26{{ end }}