From 78f2574be9c2ed3249c228d1f2160b7188ef57ef Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Wed, 2 Mar 2022 23:05:12 -0500 Subject: templates: Reset and sync to version 1.16.2 --- templates/base/footer.tmpl | 36 --------- templates/base/head.tmpl | 157 +++++++++++++++---------------------- templates/base/head_navbar.tmpl | 131 ------------------------------- templates/custom/header.tmpl | 2 +- templates/repo/header.tmpl | 167 ---------------------------------------- templates/repo/home.tmpl | 142 ---------------------------------- 6 files changed, 61 insertions(+), 574 deletions(-) delete mode 100644 templates/base/footer.tmpl delete mode 100644 templates/base/head_navbar.tmpl delete mode 100644 templates/repo/header.tmpl delete mode 100644 templates/repo/home.tmpl (limited to 'templates') diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl deleted file mode 100644 index 65bf2f0..0000000 --- a/templates/base/footer.tmpl +++ /dev/null @@ -1,36 +0,0 @@ -{{/* - - -
-*/}} - - {{template "custom/body_inner_post" .}} - -
- - {{template "custom/body_outer_post" .}} - - {{template "base/footer_content" .}} - - - - - - - - - - - - - -{{if .EnableHeatmap}} - - - -{{end}} -{{template "custom/footer" .}} - - diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index df4ce00..32e206a 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -1,115 +1,71 @@ - - + + - - {{if .Title}}{{.Title}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}} - - {{if UseServiceWorker}} - - {{else}} - - {{end}} + {{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 .EnableHeatmap}} - -{{end}} - - {{if .PageIsUserProfile}} @@ -133,21 +89,25 @@ {{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" .}} @@ -155,6 +115,7 @@ {{template "custom/body_outer_pre" .}}
+ {{template "custom/body_inner_pre" .}} @@ -163,8 +124,10 @@ {{template "base/head_navbar" .}}
{{end}} -{{/* + +{{if false}} + {{/* to make html structure "likely" complete to prevent IDE warnings */}} -*/}} +{{end}} diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl deleted file mode 100644 index c985963..0000000 --- a/templates/base/head_navbar.tmpl +++ /dev/null @@ -1,131 +0,0 @@ - diff --git a/templates/custom/header.tmpl b/templates/custom/header.tmpl index 4163c66..1d2471a 100644 --- a/templates/custom/header.tmpl +++ b/templates/custom/header.tmpl @@ -1,2 +1,2 @@ - + diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl deleted file mode 100644 index 442f962..0000000 --- a/templates/repo/header.tmpl +++ /dev/null @@ -1,167 +0,0 @@ -
-{{with .Repository}} -
-
- - {{if not .IsBeingCreated}} -
-
- {{$.CsrfTokenHtml}} -
- - - {{.NumWatches}} - -
-
-
- {{$.CsrfTokenHtml}} -
- - - {{.NumStars}} - -
-
- {{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}} - - {{end}} -
- {{end}} -
- -
-
- {{if .DescriptionHTML}}{{.DescriptionHTML}}{{else if $.IsRepositoryAdmin}}{{$.i18n.Tr "repo.no_desc"}}{{end}} - {{.Website}} -
-
- -
- {{range $.Topics}}{{.Name}}{{end}} - {{if and $.Permission.IsAdmin (not .IsArchived)}}{{$.i18n.Tr "repo.topic.manage_topics"}}{{end}} -
- - {{if and $.Permission.IsAdmin (not .IsArchived)}} - - {{end}} - -
-{{end}} -
- {{if not .Repository.IsBeingCreated}} - - {{end}} -
-
-
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl deleted file mode 100644 index e3a2c31..0000000 --- a/templates/repo/home.tmpl +++ /dev/null @@ -1,142 +0,0 @@ -{{template "base/head" .}} -
- {{template "repo/header" .}} -
- {{template "base/alert" .}} -
-
- {{if .Repository.DescriptionHTML}}{{.Repository.DescriptionHTML}}{{else if .IsRepositoryAdmin}}{{.i18n.Tr "repo.no_desc"}}{{end}} - {{.Repository.Website}} -
- {{if .RepoSearchEnabled}} - - {{end}} -
-
- {{range .Topics}}{{.Name}}{{end}} - {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{.i18n.Tr "repo.topic.manage_topics"}}{{end}} -
- {{if and .Permission.IsAdmin (not .Repository.IsArchived)}} - - {{end}} -
- {{.i18n.Tr "repo.topic.count_prompt"}} - {{.i18n.Tr "repo.topic.format_prompt"}} -
- {{if .Repository.IsArchived}} -
- {{.i18n.Tr "repo.archive.title"}} -
- {{end}} - {{template "repo/sub_menu" .}} - - {{if .IsViewFile}} - {{template "repo/view_file" .}} - {{else if .IsBlame}} - {{template "repo/blame" .}} - {{else}} - {{template "repo/view_list" .}} - {{end}} -
-
-{{template "base/footer" .}} -- cgit v1.2.3