From 62ef376d11ff62233ce92cc4e016c378299ced9d Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Mon, 21 Jul 2025 20:11:52 +0100 Subject: [PATCH] appview: rework layouting templates to be simpler Signed-off-by: oppiliappan --- appview/pages/templates/layouts/base.html | 58 ++++++++----------- appview/pages/templates/repo/commit.html | 34 +++-------- .../pages/templates/repo/compare/compare.html | 34 +++-------- .../pages/templates/repo/fragments/diff.html | 22 +++---- .../templates/repo/fragments/interdiff.html | 4 +- .../pages/templates/repo/pulls/interdiff.html | 35 ++++------- appview/pages/templates/repo/pulls/patch.html | 34 +++-------- appview/pulls/pulls.go | 4 -- 8 files changed, 75 insertions(+), 150 deletions(-) diff --git a/appview/pages/templates/layouts/base.html b/appview/pages/templates/layouts/base.html index 6b99fa1b..74867492 100644 --- a/appview/pages/templates/layouts/base.html +++ b/appview/pages/templates/layouts/base.html @@ -15,67 +15,55 @@ {{ block "extrameta" . }}{{ end }} - {{ block "topbarLayout" . }} -
-
- {{ block "topbarLeft" . }} {{ end }} -
-
- {{ block "topbar" . }} - {{ template "layouts/topbar" . }} - {{ end }} +
+ {{ block "topbarLayout" . }} +
+
+ {{ template "layouts/topbar" . }}
-
- {{ block "topbarRight" . }} {{ end }} -
- {{ end }} + {{ end }} +
-
+
{{ block "contentLayout" . }} -
-
+
+
{{ block "contentLeft" . }} {{ end }}
-
+
{{ block "content" . }}{{ end }}
-
+
{{ block "contentRight" . }} {{ end }}
{{ end }} {{ block "contentAfterLayout" . }} -
-
+
+
{{ block "contentAfterLeft" . }} {{ end }}
-
+
{{ block "contentAfter" . }}{{ end }}
-
+
{{ block "contentAfterRight" . }} {{ end }}
{{ end }}
- {{ block "footerLayout" . }} -
-
- {{ block "footerLeft" . }} {{ end }} -
-