{{ define "repo/pulls/fragments/pullStepSource" }}
{{ template "pullSourceTabs" . }} {{ if eq .Source "patch" }}
{{ template "repo/fragments/labelSectionHeaderText" "Merge into" }} {{ template "pullTargetBranchSelect" . }}
{{ template "repo/pulls/fragments/pullPatchUpload" . }} {{ else }}
{{ template "repo/fragments/labelSectionHeaderText" "Merge into" }} {{ template "pullTargetBranchSelect" . }}
{{ template "repo/fragments/labelSectionHeaderText" "Pull from" }} {{ if eq .Source "fork" }} {{ template "repo/pulls/fragments/pullCompareForks" . }} {{ else }} {{ template "repo/pulls/fragments/pullCompareBranches" . }} {{ end }}
{{ end }}
{{ if ne .Source "patch" }}
{{ i "circle-question-mark" "size-4" }} {{ i "loader-circle" "size-4 animate-spin hidden peer-[.htmx-request]:inline text-gray-500 dark:text-gray-400" }}
{{ end }}
{{ end }} {{ define "pullTargetBranchSelect" }}
{{ i "loader-circle" "size-4 animate-spin hidden peer-[.htmx-request]:inline text-gray-500 dark:text-gray-400" }}
{{ end }} {{ define "pullSourceTabs" }} {{ $active := "bg-white dark:bg-gray-800 shadow-sm cursor-default border border-gray-200 dark:border-gray-700" }} {{ $inactive := "bg-transparent hover:bg-white/50 dark:hover:bg-gray-800/50" }} {{ $shared := "group flex-1 p-3 text-left hover:no-underline flex flex-col gap-1 rounded" }} {{ $titleCls := "font-medium text-sm dark:text-white flex items-center gap-2" }} {{ $descCls := "text-xs text-gray-500 dark:text-gray-400" }} {{ $fullName := .RepoInfo.FullName }}
{{ if .RepoInfo.Roles.IsPushAllowed }} {{ end }}
{{ end }}