this repo has no description
1{{ define "repo/fragments/compareAllowPull" }}
2 <div
3 class="flex items-baseline justify-normal gap-4"
4 id="allow-pull"
5 hx-oob-swap="true">
6 <p>
7 This comparison can be turned into a pull request to be reviewed and
8 discussed.
9 </p>
10
11 {{ $newPullUrl := printf "/%s/pulls/new?strategy=branch&targetBranch=%s&sourceBranch=%s" .RepoInfo.FullName .Base .Head }}
12
13
14 <div class="flex justify-start items-center gap-2 mt-2">
15 <a
16 href="{{ $newPullUrl }}"
17 class="btn flex items-center gap-2 no-underline hover:no-underline">
18 {{ i "git-pull-request-create" "w-4 h-4" }}
19 create pull
20 <span id="create-pull-spinner" class="group">
21 {{ i "loader-circle" "w-4 h-4 animate-spin hidden group-[.htmx-request]:inline" }}
22 </span>
23 </a>
24 </div>
25 </div>
26{{ end }}