diff --git a/roles/gitea-ccchb/files/base/head.tmpl b/roles/gitea-ccchb/files/base/head.tmpl new file mode 100644 index 0000000..79eb144 --- /dev/null +++ b/roles/gitea-ccchb/files/base/head.tmpl @@ -0,0 +1,182 @@ + + + + + + + {{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/roles/gitea-ccchb/files/custom/body_inner_pre.tmpl b/roles/gitea-ccchb/files/custom/body_inner_pre.tmpl new file mode 100644 index 0000000..beb228d --- /dev/null +++ b/roles/gitea-ccchb/files/custom/body_inner_pre.tmpl @@ -0,0 +1,5 @@ + diff --git a/roles/gitea-ccchb/tasks/main.yml b/roles/gitea-ccchb/tasks/main.yml index aae9374..d043fee 100644 --- a/roles/gitea-ccchb/tasks/main.yml +++ b/roles/gitea-ccchb/tasks/main.yml @@ -3,3 +3,13 @@ copy: src: img/ dest: /var/lib/gitea/custom/public/img/ + +- name: copy overwrite html templates + copy: + src: base/ + dest: /var/lib/gitea/custom/templates/base/ + +- name: copy custom html templates + copy: + src: custom/ + dest: /var/lib/gitea/custom/templates/custom/