forked from tangled.org/core
Monorepo for Tangled

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