diff --git a/appview/pages/templates/repo/pulls/fragments/pullStack.html b/appview/pages/templates/repo/pulls/fragments/pullStack.html
index 4b2693c..e9468d3 100644
--- a/appview/pages/templates/repo/pulls/fragments/pullStack.html
+++ b/appview/pages/templates/repo/pulls/fragments/pullStack.html
@@ -8,58 +8,6 @@
{{ end }}
{{ end }}
-{{ define "summarizedHeader" }}
-
-
-
- {{ block "summarizedPullState" . }} {{ end }}
-
-
- #{{ .PullId }}
- {{ .Title }}
-
-
-
-
- {{ $latestRound := .LastRoundNumber }}
- {{ $lastSubmission := index .Submissions $latestRound }}
- {{ $commentCount := len $lastSubmission.Comments }}
-
-
- {{ i "message-square" "w-3 h-3 md:hidden" }}
- {{ $commentCount }}
- comment{{if ne $commentCount 1}}s{{end}}
-
-
-
-
- round
- #{{ $latestRound }}
-
-
-
-{{ end }}
-
-{{ define "summarizedPullState" }}
- {{ $fgColor := "text-gray-600 dark:text-gray-300" }}
- {{ $icon := "ban" }}
-
- {{ if .State.IsOpen }}
- {{ $fgColor = "text-green-600 dark:text-green-500" }}
- {{ $icon = "git-pull-request" }}
- {{ else if .State.IsMerged }}
- {{ $fgColor = "text-purple-600 dark:text-purple-500" }}
- {{ $icon = "git-merge" }}
- {{ else if .State.IsDeleted }}
- {{ $fgColor = "text-red-600 dark:text-red-500" }}
- {{ $icon = "git-pull-request-closed" }}
- {{ end }}
-
- {{ $style := printf "w-4 h-4 %s" $fgColor }}
-
- {{ i $icon $style }}
-{{ end }}
-
{{ define "pullList" }}
{{ $list := index . 0 }}
{{ $root := index . 1 }}
@@ -77,7 +25,7 @@
{{ end }}
- {{ block "summarizedHeader" $pull }} {{ end }}
+ {{ template "repo/pulls/fragments/summarizedHeader" $pull }}
diff --git a/appview/pages/templates/repo/pulls/fragments/summarizedPullHeader.html b/appview/pages/templates/repo/pulls/fragments/summarizedPullHeader.html
new file mode 100644
index 0000000..ca855b1
--- /dev/null
+++ b/appview/pages/templates/repo/pulls/fragments/summarizedPullHeader.html
@@ -0,0 +1,32 @@
+{{ define "repo/pulls/fragments/summarizedHeader" }}
+
+
+
+ {{ template "repo/pulls/fragments/summarizedPullState" .State }}
+
+
+ #{{ .PullId }}
+ {{ .Title }}
+
+
+
+
+ {{ $latestRound := .LastRoundNumber }}
+ {{ $lastSubmission := index .Submissions $latestRound }}
+ {{ $commentCount := len $lastSubmission.Comments }}
+
+
+ {{ i "message-square" "w-3 h-3 md:hidden" }}
+ {{ $commentCount }}
+ comment{{if ne $commentCount 1}}s{{end}}
+
+
+
+
+ round
+ #{{ $latestRound }}
+
+
+
+{{ end }}
+
diff --git a/appview/pages/templates/repo/pulls/fragments/summarizedPullState.html b/appview/pages/templates/repo/pulls/fragments/summarizedPullState.html
new file mode 100644
index 0000000..c87eb0c
--- /dev/null
+++ b/appview/pages/templates/repo/pulls/fragments/summarizedPullState.html
@@ -0,0 +1,20 @@
+{{ define "repo/pulls/fragments/summarizedPullState" }}
+ {{ $fgColor := "text-gray-600 dark:text-gray-300" }}
+ {{ $icon := "ban" }}
+
+ {{ if .IsOpen }}
+ {{ $fgColor = "text-green-600 dark:text-green-500" }}
+ {{ $icon = "git-pull-request" }}
+ {{ else if .IsMerged }}
+ {{ $fgColor = "text-purple-600 dark:text-purple-500" }}
+ {{ $icon = "git-merge" }}
+ {{ else if .IsDeleted }}
+ {{ $fgColor = "text-red-600 dark:text-red-500" }}
+ {{ $icon = "git-pull-request-closed" }}
+ {{ end }}
+
+ {{ $style := printf "w-4 h-4 %s" $fgColor }}
+
+ {{ i $icon $style }}
+{{ end }}
+