diff --git a/custom/public/img/avatar_default.png b/custom/public/img/avatar_default.png new file mode 100644 index 0000000..023896e Binary files /dev/null and b/custom/public/img/avatar_default.png differ diff --git a/custom/public/img/favicon.ico b/custom/public/img/favicon.ico new file mode 100644 index 0000000..3e450fe Binary files /dev/null and b/custom/public/img/favicon.ico differ diff --git a/custom/public/img/favicon.png b/custom/public/img/favicon.png new file mode 100644 index 0000000..82c1b56 Binary files /dev/null and b/custom/public/img/favicon.png differ diff --git a/custom/public/img/gitea-lg.png b/custom/public/img/gitea-lg.png new file mode 100644 index 0000000..023896e Binary files /dev/null and b/custom/public/img/gitea-lg.png differ diff --git a/custom/public/img/gitea-sm.png b/custom/public/img/gitea-sm.png new file mode 100644 index 0000000..023896e Binary files /dev/null and b/custom/public/img/gitea-sm.png differ diff --git a/custom/robots.txt b/custom/robots.txt new file mode 100644 index 0000000..e69de29 diff --git a/custom/templates/base/footer.tmpl b/custom/templates/base/footer.tmpl new file mode 100644 index 0000000..2a4b895 --- /dev/null +++ b/custom/templates/base/footer.tmpl @@ -0,0 +1,136 @@ +{{/* + + +
+*/}} + + {{template "custom/body_inner_post" .}} + +
+ + {{template "custom/body_outer_post" .}} + + {{template "base/footer_content" .}} + + + + +{{if .RequireSimpleMDE}} + + + + +{{end}} +{{if .RequireGitGraph}} + + + +{{end}} + + +{{if .RequireHighlightJS}} + +{{end}} +{{if .RequireMinicolors}} + +{{end}} +{{if .RequireDatetimepicker}} + +{{end}} +{{if .RequireDropzone}} + +{{end}} +{{if .RequireU2F}} + +{{end}} +{{if .EnableCaptcha}} + {{if eq .CaptchaType "recaptcha"}} + + {{end}} +{{end}} +{{if .RequireTribute}} + + + +{{end}} + + + + + + + +{{if .EnableHeatmap}} + + + +{{end}} +{{template "custom/footer" .}} + + diff --git a/custom/templates/base/footer_content.tmpl b/custom/templates/base/footer_content.tmpl new file mode 100644 index 0000000..f17bdfb --- /dev/null +++ b/custom/templates/base/footer_content.tmpl @@ -0,0 +1,28 @@ + diff --git a/custom/templates/base/head.tmpl b/custom/templates/base/head.tmpl new file mode 100644 index 0000000..7cdfdd3 --- /dev/null +++ b/custom/templates/base/head.tmpl @@ -0,0 +1,177 @@ + + + + + + + {{if .Title}}{{.Title}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}} + + + + + + + + + + + + {{if .IsSigned}} + + {{end}} + {{if .ContextUser}} + + {{end}} + {{if .SearchLimit}} + + {{end}} +{{if .GoGetImport}} + + +{{end}} + + + + + + + + + +{{if .RequireSimpleMDE}} + +{{end}} + +{{if .RequireGitGraph}} + + +{{end}} + +{{if .RequireTribute}} + +{{end}} + + + + + + +{{if .RequireHighlightJS}} + +{{end}} +{{if .RequireMinicolors}} + +{{end}} +{{if .RequireDatetimepicker}} + +{{end}} +{{if .RequireDropzone}} + +{{end}} +{{if .EnableHeatmap}} + +{{end}} + + + + + +{{if .PageIsUserProfile}} + + + + + +{{else if .Repository}} + + + + + {{if .Repository.Description}} + + {{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/custom/templates/base/head_navbar.tmpl b/custom/templates/base/head_navbar.tmpl new file mode 100644 index 0000000..115ed57 --- /dev/null +++ b/custom/templates/base/head_navbar.tmpl @@ -0,0 +1,144 @@ + diff --git a/custom/templates/explore/navbar.tmpl b/custom/templates/explore/navbar.tmpl new file mode 100644 index 0000000..519e919 --- /dev/null +++ b/custom/templates/explore/navbar.tmpl @@ -0,0 +1,18 @@ + diff --git a/custom/templates/home.tmpl b/custom/templates/home.tmpl new file mode 100644 index 0000000..8e40fe0 --- /dev/null +++ b/custom/templates/home.tmpl @@ -0,0 +1,17 @@ +{{template "base/head" .}} +
+
+
+
+ +
+
+

+ {{AppName}} +

+ +
+
+
+
+{{template "base/footer" .}} diff --git a/custom/templates/org/home.tmpl b/custom/templates/org/home.tmpl new file mode 100644 index 0000000..8c423ba --- /dev/null +++ b/custom/templates/org/home.tmpl @@ -0,0 +1,87 @@ +{{template "base/head" .}} +
+ {{/* overflow: auto is the clearfix - this avoids the image going beyond + the container where it is supposed to stay inside. */}} +
+ +
+
+ {{.Org.DisplayName}} + {{if .IsOrganizationOwner}}{{end}} +
+ {{if .Org.Description}}

{{.Org.Description}}

{{end}} +
+ {{if .Org.Location}}
{{.Org.Location}}
{{end}} + {{if .Org.Website}}{{end}} +
+
+
+ +
+ +
+
+
+ + {{template "explore/repo_search" .}} + {{template "explore/repo_list" .}} + {{template "base/paginate" .}} +
+ + + +
+
+
+ +{{template "base/footer" .}}