From a65c88ed875a156bfadce43ea3700bd9e83a3717 Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 24 Nov 2021 11:22:47 +0800 Subject: [PATCH] modify code --- templates/base/footer_content_fluid.tmpl | 42 +++++++ templates/base/footer_fluid.tmpl | 48 +++++++ templates/base/head_fluid.tmpl | 208 +++++++++++++++++++++++++++++++ templates/base/head_navbar_fluid.tmpl | 177 ++++++++++++++++++++++++++ templates/explore/data_analysis.tmpl | 8 +- 5 files changed, 477 insertions(+), 6 deletions(-) create mode 100644 templates/base/footer_content_fluid.tmpl create mode 100644 templates/base/footer_fluid.tmpl create mode 100644 templates/base/head_fluid.tmpl create mode 100644 templates/base/head_navbar_fluid.tmpl diff --git a/templates/base/footer_content_fluid.tmpl b/templates/base/footer_content_fluid.tmpl new file mode 100644 index 000000000..e07a4d5ab --- /dev/null +++ b/templates/base/footer_content_fluid.tmpl @@ -0,0 +1,42 @@ + diff --git a/templates/base/footer_fluid.tmpl b/templates/base/footer_fluid.tmpl new file mode 100644 index 000000000..cb3eb7b29 --- /dev/null +++ b/templates/base/footer_fluid.tmpl @@ -0,0 +1,48 @@ +{{/* + + +
+ */}} + + {{template "custom/body_inner_post" .}} + +
+ + {{template "custom/body_outer_post" .}} + + {{template "base/footer_content_fluid" .}} + + + {{if .RequireSimpleMDE}} + + + + + {{end}} + + + {{if .RequireMinicolors}} + + {{end}} + {{if .RequireU2F}} + + {{end}} + {{if .EnableCaptcha}} + {{if eq .CaptchaType "recaptcha"}} + + {{end}} + {{end}} + {{if .RequireTribute}} + + {{end}} + {{if .PageIsHome}} + + {{end}} + + + {{template "custom/footer" .}} + + + \ No newline at end of file diff --git a/templates/base/head_fluid.tmpl b/templates/base/head_fluid.tmpl new file mode 100644 index 000000000..d16d42200 --- /dev/null +++ b/templates/base/head_fluid.tmpl @@ -0,0 +1,208 @@ + + + + + + + {{if .Title}}{{.Title}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}} + + {{if UseServiceWorker}} + + {{else}} + + {{end}} + + + + + + + {{if .IsSigned}} + + {{end}} + {{if .ContextUser}} + + {{end}} + {{if .SearchLimit}} + + {{end}} +{{if .GoGetImport}} + + +{{end}} + + + + + + + + +{{if .RequireSimpleMDE}} + +{{end}} + +{{if .RequireTribute}} + +{{end}} + + + +{{if .RequireMinicolors}} + +{{end}} + +{{if .PageIsUserProfile}} + + + + + {{if .Owner.Description}} + + {{end}} +{{else if .Repository}} + {{if .Issue}} + + + {{if .Issue.Content}} + + {{end}} + {{else}} + + + {{if .Repository.Description}} + + {{end}} + {{end}} + + +{{else}} + + + + + +{{end}} + +{{if .IsSigned }} + {{ if ne .SignedUser.Theme "gitea" }} + + {{end}} +{{else if ne DefaultTheme "gitea"}} + +{{end}} +{{template "custom/header" .}} + + + + + + + {{template "custom/body_outer_pre" .}} + +
+ + + {{template "custom/body_inner_pre" .}} + + {{if not .PageIsInstall}} + + {{end}} +{{/* +
+ + +*/}} diff --git a/templates/base/head_navbar_fluid.tmpl b/templates/base/head_navbar_fluid.tmpl new file mode 100644 index 000000000..11f5e70da --- /dev/null +++ b/templates/base/head_navbar_fluid.tmpl @@ -0,0 +1,177 @@ + diff --git a/templates/explore/data_analysis.tmpl b/templates/explore/data_analysis.tmpl index 4807e9903..34ad3f018 100755 --- a/templates/explore/data_analysis.tmpl +++ b/templates/explore/data_analysis.tmpl @@ -1,10 +1,10 @@ -{{template "base/head" .}} +{{template "base/head_fluid" .}}
-{{template "base/footer" .}} +{{template "base/footer_fluid" .}} \ No newline at end of file