From 2add8fe9beede4aa82c913fcb70c0cf5bb1c6185 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 21 Oct 2021 15:37:43 +0800 Subject: Frontend refactor, PascalCase to camelCase, remove unused code (#17365) * Frontend refactor, PascalCase to camelCase, remove unused code * fix --- templates/base/head.tmpl | 35 +++++++++++++---------------------- templates/repo/projects/list.tmpl | 2 +- templates/repo/projects/new.tmpl | 2 +- templates/repo/projects/view.tmpl | 10 +++++----- 4 files changed, 20 insertions(+), 29 deletions(-) (limited to 'templates') diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 80bb121c6b..23d1190d94 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -3,7 +3,7 @@ - {{if .Title}}{{.Title | RenderEmojiPlain}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}} + {{if .Title}}{{.Title | RenderEmojiPlain}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}} @@ -11,7 +11,6 @@ - {{if .GoGetImport}} @@ -19,25 +18,17 @@ diff --git a/templates/repo/projects/list.tmpl b/templates/repo/projects/list.tmpl index ec7370709f..f152d20915 100644 --- a/templates/repo/projects/list.tmpl +++ b/templates/repo/projects/list.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -
+
{{template "repo/header" .}}