forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

add basic pr header to interdiff

Changed files
+19 -1
appview
pages
templates
repo
fragments
pulls
+1 -1
appview/pages/templates/repo/fragments/interdiff.html
···
<section class="mt-6 p-6 border border-gray-200 dark:border-gray-700 w-full mx-auto rounded bg-white dark:bg-gray-800 drop-shadow-sm">
<div class="diff-stat">
<div class="flex gap-2 items-center">
-
<strong class="text-sm uppercase dark:text-gray-200">affected files</strong>
+
<strong class="text-sm uppercase dark:text-gray-200">files</strong>
</div>
<div class="overflow-x-auto">
<ul class="dark:text-gray-200">
+18
appview/pages/templates/repo/pulls/interdiff.html
···
{{ end }}
{{ define "content" }}
+
<div class="rounded drop-shadow-sm bg-white dark:bg-gray-800 py-4 px-6 dark:text-white">
+
<header class="pb-2">
+
<div class="flex gap-3 items-center mb-3">
+
<a href="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/" class="flex items-center gap-2 font-medium">
+
{{ i "arrow-left" "w-5 h-5" }}
+
back
+
</a>
+
<span class="select-none before:content-['\00B7']"></span>
+
interdiff of round #{{ .Round }} and #{{ sub .Round 1 }}
+
</div>
+
<div class="border-t border-gray-200 dark:border-gray-700 my-2"></div>
+
<h1 class="text-2xl mt-3">
+
{{ .Pull.Title }}
+
<span class="text-gray-500 dark:text-gray-400">#{{ .Pull.PullId }}</span>
+
</h1>
+
</header>
+
</div>
+
<section>
{{ template "repo/fragments/interdiff" (list .RepoInfo.FullName .Interdiff) }}
</section>