Monorepo for Tangled tangled.org
2

Configure Feed

Select the types of activity you want to include in your feed.

appview/pages: removed unused templates

Signed-off-by: oppiliappan <me@oppi.li>

author
oppiliappan
date (May 22, 2026, 1:01 PM +0100) commit b51ba4e6 parent 270d1a04 change-id twuxvlkx
-154
-31
appview/pages/pages.go
··· 27 27 "tangled.org/core/appview/pages/repoinfo" 28 28 "tangled.org/core/appview/pagination" 29 29 "tangled.org/core/idresolver" 30 - "tangled.org/core/patchutil" 31 30 "tangled.org/core/types" 32 31 33 32 "github.com/bluesky-social/indigo/atproto/identity" ··· 1350 1349 func (p *Pages) RepoSinglePull(w io.Writer, params RepoSinglePullParams) error { 1351 1350 params.Active = "pulls" 1352 1351 return p.executeRepo("repo/pulls/pull", w, params) 1353 - } 1354 - 1355 - type RepoPullPatchParams struct { 1356 - LoggedInUser *oauth.MultiAccountUser 1357 - RepoInfo repoinfo.RepoInfo 1358 - Pull *models.Pull 1359 - Stack models.Stack 1360 - Diff *types.NiceDiff 1361 - Round int 1362 - Submission *models.PullSubmission 1363 - DiffOpts types.DiffOpts 1364 - } 1365 - 1366 - // this name is a mouthful 1367 - func (p *Pages) RepoPullPatchPage(w io.Writer, params RepoPullPatchParams) error { 1368 - return p.execute("repo/pulls/patch", w, params) 1369 - } 1370 - 1371 - type RepoPullInterdiffParams struct { 1372 - LoggedInUser *oauth.MultiAccountUser 1373 - RepoInfo repoinfo.RepoInfo 1374 - Pull *models.Pull 1375 - Round int 1376 - Interdiff *patchutil.InterdiffResult 1377 - DiffOpts types.DiffOpts 1378 - } 1379 - 1380 - // this name is a mouthful 1381 - func (p *Pages) RepoPullInterdiffPage(w io.Writer, params RepoPullInterdiffParams) error { 1382 - return p.execute("repo/pulls/interdiff", w, params) 1383 1352 } 1384 1353 1385 1354 type PullResubmitParams struct {
-6
appview/pages/templates/repo/commit.html
··· 111 111 {{ end }} 112 112 {{ end }} 113 113 114 - {{ define "topbarLayout" }} 115 - <header class="col-span-full" style="z-index: 20;"> 116 - {{ template "layouts/fragments/topbar" . }} 117 - </header> 118 - {{ end }} 119 - 120 114 {{ define "mainLayout" }} 121 115 <div class="px-1 flex-grow col-span-full flex flex-col gap-4"> 122 116 {{ block "contentLayout" . }}
-8
appview/pages/templates/repo/compare/compare.html
··· 10 10 {{ end }} 11 11 {{ end }} 12 12 13 - {{ define "topbarLayout" }} 14 - <header class="px-1 col-span-full" style="z-index: 20;"> 15 - {{ template "layouts/fragments/topbar" . }} 16 - </header> 17 - {{ end }} 18 - 19 13 {{ define "mainLayout" }} 20 14 <div class="px-1 flex-grow col-span-full flex flex-col gap-4"> 21 15 {{ block "contentLayout" . }} ··· 25 19 {{ block "contentAfter" . }}{{ end }} 26 20 </div> 27 21 {{ end }} 28 - 29 - 30 22 31 23 {{ define "contentAfter" }} 32 24 {{ template "repo/fragments/diff" (list .Diff .DiffOpts) }}
-42
appview/pages/templates/repo/pulls/interdiff.html
··· 1 - {{ define "title" }} 2 - interdiff of round #{{ .Round }} and #{{ sub .Round 1 }} &middot; pull #{{ .Pull.PullId }} &middot; {{ .RepoInfo.FullName }} 3 - {{ end }} 4 - 5 - 6 - {{ define "extrameta" }} 7 - {{ $title := printf "interdiff of %d and %d &middot; %s &middot; pull #%d &middot; %s" .Round (sub .Round 1) .Pull.Title .Pull.PullId .RepoInfo.FullName }} 8 - {{ $url := printf "https://tangled.org/%s/pulls/%d/round/%d" .RepoInfo.FullName .Pull.PullId .Round }} 9 - 10 - {{ template "repo/fragments/og" (dict "RepoInfo" .RepoInfo "Title" (unescapeHtml $title) "Url" $url) }} 11 - {{ end }} 12 - 13 - {{ define "content" }} 14 - <section class="rounded drop-shadow-sm bg-white dark:bg-gray-800 py-4 px-6 dark:text-white"> 15 - <header class="pb-2"> 16 - <div class="flex gap-3 items-center mb-3"> 17 - <a href="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/" class="flex items-center gap-2 font-medium"> 18 - {{ i "arrow-left" "w-5 h-5" }} 19 - back 20 - </a> 21 - <span class="select-none before:content-['\00B7']"></span> 22 - interdiff of round #{{ .Round }} and #{{ sub .Round 1 }} 23 - </div> 24 - <div class="border-t border-gray-200 dark:border-gray-700 my-2"></div> 25 - {{ template "repo/pulls/fragments/pullHeader" . }} 26 - </header> 27 - </section> 28 - {{ end }} 29 - 30 - {{ define "mainLayout" }} 31 - <div class="px-1 col-span-full flex-grow flex flex-col gap-4"> 32 - {{ block "contentLayout" . }} 33 - {{ block "content" . }}{{ end }} 34 - {{ end }} 35 - 36 - {{ block "contentAfter" . }}{{ end }} 37 - </div> 38 - {{ end }} 39 - 40 - {{ define "contentAfter" }} 41 - {{ template "repo/fragments/diff" (list .Interdiff .DiffOpts) }} 42 - {{end}}
-67
appview/pages/templates/repo/pulls/patch.html
··· 1 - {{ define "title" }} 2 - patch of {{ .Pull.Title }} &middot; round #{{ .Round }} &middot; pull #{{ .Pull.PullId }} &middot; {{ .RepoInfo.FullName }} 3 - {{ end }} 4 - 5 - 6 - {{ define "extrameta" }} 7 - {{ $title := printf "patch of %s &middot; pull #%d &middot; %s" .Pull.Title .Pull.PullId .RepoInfo.FullName }} 8 - {{ $url := printf "https://tangled.org/%s/pulls/%d/round/%d" .RepoInfo.FullName .Pull.PullId .Round }} 9 - 10 - {{ template "repo/fragments/og" (dict "RepoInfo" .RepoInfo "Title" $title "Url" $url) }} 11 - {{ end }} 12 - 13 - 14 - {{ define "content" }} 15 - <section> 16 - <section 17 - class="bg-white dark:bg-gray-800 p-6 rounded relative w-full mx-auto shadow-sm dark:text-white" 18 - > 19 - <div class="flex gap-3 items-center mb-3"> 20 - <a href="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/" class="flex items-center gap-2 font-medium"> 21 - {{ i "arrow-left" "w-5 h-5" }} 22 - back 23 - </a> 24 - <span class="select-none before:content-['\00B7']"></span> 25 - round<span class="flex items-center">{{ i "hash" "w-4 h-4" }}{{ .Round }}</span> 26 - <span class="select-none before:content-['\00B7']"></span> 27 - <a href="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/round/{{ .Round }}.patch"> 28 - view raw 29 - </a> 30 - </div> 31 - <div class="border-t border-gray-200 dark:border-gray-700 my-2"></div> 32 - {{ template "repo/pulls/fragments/pullHeader" . }} 33 - </section> 34 - </section> 35 - {{ end }} 36 - 37 - {{ define "mainLayout" }} 38 - <div class="px-1 col-span-full flex-grow flex flex-col gap-4"> 39 - {{ block "contentLayout" . }} 40 - {{ block "content" . }}{{ end }} 41 - {{ end }} 42 - 43 - {{ block "contentAfterLayout" . }} 44 - <div class="flex-grow grid grid-cols-1 md:grid-cols-12 gap-4"> 45 - <div class="flex flex-col gap-4 col-span-1 md:col-span-2"> 46 - {{ block "contentAfterLeft" . }} {{ end }} 47 - </div> 48 - <main class="col-span-1 md:col-span-10"> 49 - {{ block "contentAfter" . }}{{ end }} 50 - </main> 51 - </div> 52 - {{ end }} 53 - </div> 54 - {{ end }} 55 - 56 - {{ define "contentAfter" }} 57 - {{ template "repo/fragments/diff" (list .Diff .DiffOpts) }} 58 - {{end}} 59 - 60 - {{ define "contentAfterLeft" }} 61 - <div class="flex flex-col gap-4 col-span-1 md:col-span-2"> 62 - {{ template "repo/fragments/diffOpts" .DiffOpts }} 63 - </div> 64 - <div class="sticky top-0 flex-grow max-h-screen overflow-y-auto"> 65 - {{ template "repo/fragments/diffChangedFiles" .Diff }} 66 - </div> 67 - {{end}}