From ace114e82833b55e204a3fdf8eca528cc9712d4d Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Thu, 23 Jan 2020 01:39:58 -0500 Subject: templates: Base commit --- templates/base/head.tmpl | 193 ++++++++++++++++++++++++++++++++++++++++ templates/base/head_navbar.tmpl | 136 ++++++++++++++++++++++++++++ 2 files changed, 329 insertions(+) create mode 100644 templates/base/head.tmpl create mode 100644 templates/base/head_navbar.tmpl (limited to 'templates') diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl new file mode 100644 index 0000000..4c96c0b --- /dev/null +++ b/templates/base/head.tmpl @@ -0,0 +1,193 @@ + + + + + + + {{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 .RequireHighlightJS}} + +{{end}} +{{if .RequireMinicolors}} + +{{end}} +{{if .RequireDatetimepicker}} + +{{end}} +{{if .RequireDropzone}} + +{{end}} +{{if .EnableHeatmap}} + +{{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.tmpl b/templates/base/head_navbar.tmpl new file mode 100644 index 0000000..8ed5a94 --- /dev/null +++ b/templates/base/head_navbar.tmpl @@ -0,0 +1,136 @@ + -- cgit v1.2.3