From 76b1e118ce0995a9b62a5ce887c5077e7e84fb37 Mon Sep 17 00:00:00 2001
From: ctsk <9384305+ctsk@users.noreply.github.com>
Date: Sat, 30 Sep 2023 13:21:03 +0200
Subject: [PATCH] [gitea] Update templates for v1.20.4
---
lib/modules/gitea/templates/base/head.tmpl | 35 ++++++-------------
.../gitea/templates/explore/navbar.tmpl | 6 ++--
2 files changed, 14 insertions(+), 27 deletions(-)
diff --git a/lib/modules/gitea/templates/base/head.tmpl b/lib/modules/gitea/templates/base/head.tmpl
index 2873d33..89e658c 100644
--- a/lib/modules/gitea/templates/base/head.tmpl
+++ b/lib/modules/gitea/templates/base/head.tmpl
@@ -1,17 +1,13 @@
-
{{if .Title}}{{.Title | RenderEmojiPlain}} - {{end}}{{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}}
{{if .ManifestData}}{{end}}
- {{if ThemeColorMetaTag}}{{end}}
-
-
{{if .GoGetImport}}
@@ -22,7 +18,6 @@
{{end}}
-
{{template "base/head_script" .}}
{{if .PageIsUserProfile}}
-
+
-
-
- {{if .Owner.Description}}
-
+
+
+ {{if .ContextUser.Description}}
+
{{end}}
{{else if .Repository}}
{{if .Issue}}
@@ -65,15 +60,9 @@
{{end}}
-
-{{if .IsSigned}}
- {{if ne .SignedUser.Theme "gitea"}}
-
- {{end}}
-{{else if ne DefaultTheme "gitea"}}
-
-{{end}}
-{{template "custom/header" .}}
+
+ {{template "base/head_style" .}}
+ {{template "custom/header" .}}
{{template "custom/body_outer_pre" .}}
@@ -83,10 +72,8 @@
{{template "custom/body_inner_pre" .}}
- {{if and (not .PageIsInstall) .IsSigned }}
-
- {{template "base/head_navbar" .}}
-
+ {{if and (not .PageIsInstall) .IsSigned}}
+ {{template "base/head_navbar" .}}
{{end}}
{{if false}}
@@ -94,4 +81,4 @@
-{{end}}
+{{end}}
\ No newline at end of file
diff --git a/lib/modules/gitea/templates/explore/navbar.tmpl b/lib/modules/gitea/templates/explore/navbar.tmpl
index fc7c15f..6c95d19 100644
--- a/lib/modules/gitea/templates/explore/navbar.tmpl
+++ b/lib/modules/gitea/templates/explore/navbar.tmpl
@@ -1,4 +1,4 @@
-
\ No newline at end of file