From eccc71db34cfa6c49515cad4b1bc1c9eb60f525e Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Tue, 17 Mar 2026 15:31:25 +0000 Subject: [PATCH] appview/pages: split footerFull and footerMinimal Signed-off-by: Anirudh Oppiliappan --- appview/pages/templates/repo/commit.html | 6 +----- appview/pages/templates/timeline/home.html | 2 +- appview/pages/templates/layouts/fragments/footer.html | 2 +- appview/pages/templates/layouts/fragments/footerMinimal.html | 19 +++++++++++++++++++ appview/pages/templates/repo/compare/compare.html | 6 +----- 5 file(s) changed, 23 insertion(s)(+), 12 deletion(s)(-) diff --git a/appview/pages/templates/repo/commit.html b/appview/pages/templates/repo/commit.html --- a/appview/pages/templates/repo/commit.html +++ b/appview/pages/templates/repo/commit.html @@ -127,11 +127,7 @@ {{ end }} -{{ define "footerLayout" }} -
- {{ template "layouts/fragments/footer" . }} -
-{{ end }} + {{ define "contentAfter" }} {{ template "repo/fragments/diff" (list .Diff .DiffOpts) }} diff --git a/appview/pages/templates/timeline/home.html b/appview/pages/templates/timeline/home.html --- a/appview/pages/templates/timeline/home.html +++ b/appview/pages/templates/timeline/home.html @@ -48,7 +48,7 @@ {{ block "footerLayout" . }}
- {{ template "layouts/fragments/footer" . }} + {{ template "layouts/fragments/footerFull" . }}
{{ end }} diff --git a/appview/pages/templates/layouts/fragments/footer.html b/appview/pages/templates/layouts/fragments/footer.html --- a/appview/pages/templates/layouts/fragments/footer.html +++ b/appview/pages/templates/layouts/fragments/footer.html @@ -1,4 +1,4 @@ -{{ define "layouts/fragments/footer" }} +{{ define "layouts/fragments/footerFull" }}
diff --git a/appview/pages/templates/layouts/fragments/footerMinimal.html b/appview/pages/templates/layouts/fragments/footerMinimal.html new file mode 100644 --- /dev/null +++ b/appview/pages/templates/layouts/fragments/footerMinimal.html @@ -0,0 +1,19 @@ +{{ define "layouts/fragments/footer" }} + +{{ end }} diff --git a/appview/pages/templates/repo/compare/compare.html b/appview/pages/templates/repo/compare/compare.html --- a/appview/pages/templates/repo/compare/compare.html +++ b/appview/pages/templates/repo/compare/compare.html @@ -26,11 +26,7 @@
{{ end }} -{{ define "footerLayout" }} - -{{ end }} + {{ define "contentAfter" }} {{ template "repo/fragments/diff" (list .Diff .DiffOpts) }} -- tangled.sh