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}}