From 45f8337144d396a4603a3b95e100befca16c7bff Mon Sep 17 00:00:00 2001 From: genofire Date: Fri, 18 Sep 2020 16:18:28 +0000 Subject: [PATCH] use current template version of gitea --- .../files/{ => templates}/base/head.tmpl | 46 ++++++++----------- .../custom/body_inner_pre.tmpl | 0 roles/gitea-ccchb/tasks/main.yml | 11 ++--- 3 files changed, 21 insertions(+), 36 deletions(-) rename roles/gitea-ccchb/files/{ => templates}/base/head.tmpl (84%) rename roles/gitea-ccchb/files/{ => templates}/custom/body_inner_pre.tmpl (100%) diff --git a/roles/gitea-ccchb/files/base/head.tmpl b/roles/gitea-ccchb/files/templates/base/head.tmpl similarity index 84% rename from roles/gitea-ccchb/files/base/head.tmpl rename to roles/gitea-ccchb/files/templates/base/head.tmpl index 79eb144..bca7bb9 100644 --- a/roles/gitea-ccchb/files/base/head.tmpl +++ b/roles/gitea-ccchb/files/templates/base/head.tmpl @@ -1,35 +1,11 @@ - + - {{if .Title}}{{.Title}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}} + {{if .Title}}{{.Title | RenderEmojiPlain}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}} - {{if UseServiceWorker}} - - {{else}} - - {{end}} @@ -84,8 +60,10 @@ - - {{if .RequireSimpleMDE}} {{end}} diff --git a/roles/gitea-ccchb/files/custom/body_inner_pre.tmpl b/roles/gitea-ccchb/files/templates/custom/body_inner_pre.tmpl similarity index 100% rename from roles/gitea-ccchb/files/custom/body_inner_pre.tmpl rename to roles/gitea-ccchb/files/templates/custom/body_inner_pre.tmpl diff --git a/roles/gitea-ccchb/tasks/main.yml b/roles/gitea-ccchb/tasks/main.yml index d043fee..f0a8b30 100644 --- a/roles/gitea-ccchb/tasks/main.yml +++ b/roles/gitea-ccchb/tasks/main.yml @@ -4,12 +4,7 @@ src: img/ dest: /var/lib/gitea/custom/public/img/ -- name: copy overwrite html templates +- name: copy 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/ + src: templates/ + dest: /var/lib/gitea/custom/templates/