From b559886a7708dddb7126adbb0b2ee4fb2371e72b Mon Sep 17 00:00:00 2001 From: hippoz Date: Wed, 5 May 2021 23:05:55 +0300 Subject: [PATCH] testing again!!! --- templates/base/head.tmpl | 135 ++++++++++++++++++++++++++++++++ templates/base/head_navbar.tmpl | 4 - 2 files changed, 135 insertions(+), 4 deletions(-) create mode 100644 templates/base/head.tmpl diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl new file mode 100644 index 0000000..d10eb47 --- /dev/null +++ b/templates/base/head.tmpl @@ -0,0 +1,135 @@ + + + + + + {{if .Title}}{{.Title | RenderEmojiPlain}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}} + + + + + + + + + {{if .IsSigned}} + + {{end}} + {{if .ContextUser}} + + {{end}} + {{if .SearchLimit}} + + {{end}} +{{if .GoGetImport}} + + +{{end}} + + + +{{if .RequireSimpleMDE}} + +{{end}} + + + +{{if .PageIsUserProfile}} + + + + + {{if .Owner.Description}} + + {{end}} +{{else if .Repository}} + {{if .Issue}} + + + {{if .Issue.Content}} + + {{end}} + {{else}} + + + {{if .Repository.Description}} + + {{end}} + {{end}} + + {{if .Repository.AvatarLink}} + + {{else}} + + {{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}} + {{template "base/head_navbar" .}} + {{end}} +{{/* + + +*/}} \ No newline at end of file diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 31aa35a..c38f323 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -158,10 +158,6 @@ {{svg "octicon-tools"}} {{.i18n.Tr "your_settings"}} - - {{svg "octicon-question"}} - {{.i18n.Tr "help"}} - {{if .IsAdmin}}