+7
-7
appview/pages/templates/repo/pulls/pull.html
+7
-7
appview/pages/templates/repo/pulls/pull.html
···
6
{{ template "repo/pulls/fragments/pullHeader" . }}
7
{{ end }}
8
9
-
10
-
11
{{ define "repoAfter" }}
12
<section id="submissions" class="mt-4">
13
<div class="flex flex-col gap-4">
···
65
</summary>
66
67
{{ if .IsFormatPatch }}
68
-
<div class="rounded ml-12 drop-shadow-sm bg-white dark:bg-gray-800 dark:text-white w-fit md:max-w-3/5 flex flex-col gap-2 mt-2 relative">
69
-
{{ $patches := .AsFormatPatch }}
70
-
{{ range $patches }}
71
-
<div id="commit-{{.SHA}}" class="py-2 px-4 relative w-full md:max-w-3/5 md:w-fit flex flex-col">
72
<div class="flex items-center justify-between gap-2">
73
{{ i "git-commit-horizontal" "w-4 h-4 mr-1.5" }}
74
<span>{{ .Title }}</span>
75
{{ if gt (len .Body) 0 }}
···
80
{{ i "ellipsis" "w-3 h-3" }}
81
</button>
82
{{ end }}
83
<div class="text-sm text-gray-500 dark:text-gray-400">
84
{{ if not $.Pull.IsPatchBased }}
85
{{ $fullRepo := $.RepoInfo.FullName }}
···
98
</p>
99
{{ end }}
100
</div>
101
-
{{ end }}
102
</div>
103
{{ end }}
104
105
···
6
{{ template "repo/pulls/fragments/pullHeader" . }}
7
{{ end }}
8
9
{{ define "repoAfter" }}
10
<section id="submissions" class="mt-4">
11
<div class="flex flex-col gap-4">
···
63
</summary>
64
65
{{ if .IsFormatPatch }}
66
+
{{ $patches := .AsFormatPatch }}
67
+
{{ range $patches }}
68
+
<div class="rounded ml-20 drop-shadow-sm bg-white dark:bg-gray-800 dark:text-white w-fit md:max-w-3/5 flex flex-col gap-2 mt-2 relative">
69
+
<div id="commit-{{.SHA}}" class="py-2 px-2 relative w-full md:max-w-3/5 md:w-fit flex flex-col">
70
<div class="flex items-center justify-between gap-2">
71
+
<div class="mr-4 flex items-center justify-start">
72
{{ i "git-commit-horizontal" "w-4 h-4 mr-1.5" }}
73
<span>{{ .Title }}</span>
74
{{ if gt (len .Body) 0 }}
···
79
{{ i "ellipsis" "w-3 h-3" }}
80
</button>
81
{{ end }}
82
+
</div>
83
<div class="text-sm text-gray-500 dark:text-gray-400">
84
{{ if not $.Pull.IsPatchBased }}
85
{{ $fullRepo := $.RepoInfo.FullName }}
···
98
</p>
99
{{ end }}
100
</div>
101
</div>
102
+
{{ end }}
103
{{ end }}
104
105