diff --git a/.gitignore b/.gitignore
index ceeeaa92c..aca4040d2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -56,6 +56,7 @@ coverage.all
/custom/conf/app.ini
!/custom/conf/app.ini.sample
/custom/public/kanban
+/custom/public/annual-report
/data
/indexers
/log
diff --git a/custom/public/css/placeholder-home.css b/custom/public/css/placeholder-home.css
new file mode 100644
index 000000000..9f0431def
--- /dev/null
+++ b/custom/public/css/placeholder-home.css
@@ -0,0 +1 @@
+/* placeholder-home.css */
diff --git a/custom/public/css/placeholder.css b/custom/public/css/placeholder.css
new file mode 100644
index 000000000..1ae0f997e
--- /dev/null
+++ b/custom/public/css/placeholder.css
@@ -0,0 +1 @@
+/* placeholder.css */
diff --git a/custom/public/img/home-banner-02-1.jpg b/custom/public/img/home-banner-02-1.jpg
new file mode 100644
index 000000000..13a090eac
Binary files /dev/null and b/custom/public/img/home-banner-02-1.jpg differ
diff --git a/custom/public/img/home-banner-02-2.png b/custom/public/img/home-banner-02-2.png
new file mode 100644
index 000000000..c48c347de
Binary files /dev/null and b/custom/public/img/home-banner-02-2.png differ
diff --git a/custom/public/img/logo-w-origin.svg b/custom/public/img/logo-w-origin.svg
new file mode 100644
index 000000000..133f63d23
--- /dev/null
+++ b/custom/public/img/logo-w-origin.svg
@@ -0,0 +1,45 @@
+
+
+
diff --git a/custom/public/img/logo-w.svg b/custom/public/img/logo-w.svg
index 133f63d23..48308634c 100644
--- a/custom/public/img/logo-w.svg
+++ b/custom/public/img/logo-w.svg
@@ -1,45 +1 @@
-
-
-
+
\ No newline at end of file
diff --git a/custom/public/js/placeholder-home.js b/custom/public/js/placeholder-home.js
new file mode 100644
index 000000000..f967c5fcb
--- /dev/null
+++ b/custom/public/js/placeholder-home.js
@@ -0,0 +1 @@
+/* placeholder-home.js */
diff --git a/custom/public/js/placeholder.js b/custom/public/js/placeholder.js
new file mode 100644
index 000000000..e2c4bcff7
--- /dev/null
+++ b/custom/public/js/placeholder.js
@@ -0,0 +1 @@
+/* placeholder.js */
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 88c63c8c7..ce8c5dfe7 100755
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -106,7 +106,8 @@ func NewFuncMap() []template.FuncMap {
"SafeJS": SafeJS,
"Str2html": Str2html,
"subOne": subOne,
- "addOne": addOne,
+ "addOne": addOne,
+ "TimeStampNow": timeutil.TimeStampNow,
"TimeSince": timeutil.TimeSince,
"TimeSinceUnix": timeutil.TimeSinceUnix,
"TimeSinceUnix1": timeutil.TimeSinceUnix1,
@@ -367,6 +368,7 @@ func NewTextFuncMap() []texttmpl.FuncMap {
"AppDomain": func() string {
return setting.Domain
},
+ "TimeStampNow": timeutil.TimeStampNow,
"TimeSince": timeutil.TimeSince,
"TimeSinceUnix": timeutil.TimeSinceUnix,
"TimeSinceUnix1": timeutil.TimeSinceUnix1,
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 23c92ca9a..f04b67903 100755
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -3306,6 +3306,7 @@ point_hr = Point/hr
DEBUG = DEBUG
SNN4IMAGENET = BENCHMARK
BRAINSCORE = BENCHMARK
+SNN4ECOSET = BENCHMARK
MODELSAFETY = BENCHMARK
TRAIN = TRAIN
INFERENCE = INFERENCE
diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini
index be3130d2e..ab05212f2 100755
--- a/options/locale/locale_zh-CN.ini
+++ b/options/locale/locale_zh-CN.ini
@@ -3327,6 +3327,7 @@ point_hr = 积分/时
DEBUG = 调试任务
SNN4IMAGENET = 评测任务
BRAINSCORE = 评测任务
+SNN4ECOSET = 评测任务
MODELSAFETY = 评测任务
TRAIN = 训练任务
INFERENCE = 推理任务
diff --git a/templates/admin/cloudbrain/list.tmpl b/templates/admin/cloudbrain/list.tmpl
index f6d20216a..5040de2cc 100755
--- a/templates/admin/cloudbrain/list.tmpl
+++ b/templates/admin/cloudbrain/list.tmpl
@@ -89,7 +89,7 @@
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl
index 738578a8a..d652f3ab1 100755
--- a/templates/base/footer.tmpl
+++ b/templates/base/footer.tmpl
@@ -17,9 +17,9 @@
{{if .RequireSimpleMDE}}
-
-
-
+
+
+
@@ -27,10 +27,10 @@
{{if .RequireMinicolors}}
-
+
{{end}}
{{if .RequireU2F}}
-
+
{{end}}
{{if .EnableCaptcha}}
{{if eq .CaptchaType "recaptcha"}}
@@ -38,17 +38,17 @@
{{end}}
{{end}}
{{if .RequireTribute}}
-
+
{{end}}
{{if .PageIsHome}}
-
+
{{end}}
{{template "custom/footer" .}}
{{if .PageIsHome}}
-
-
+
+
{{if .RequireSimpleMDE}}
-
-
-
+
+
+
@@ -24,10 +24,10 @@
{{if .RequireMinicolors}}
-
+
{{end}}
{{if .RequireU2F}}
-
+
{{end}}
{{if .EnableCaptcha}}
{{if eq .CaptchaType "recaptcha"}}
@@ -35,10 +35,10 @@
{{end}}
{{end}}
{{if .RequireTribute}}
-
+
{{end}}
{{if .PageIsHome}}
-
+
{{end}}
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index f4766bc9d..113813c09 100755
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -5,7 +5,7 @@
{{if .Title}}{{.Title}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}}
-
+
{{if UseServiceWorker}}
-
-
-
-
+
+
+
+
{{if .RequireSimpleMDE}}
-
+
{{end}}
{{if .RequireTribute}}
-
+
{{end}}
@@ -137,7 +137,7 @@
{{if .RequireMinicolors}}
-
+
{{end}}
{{if .PageIsUserProfile}}
@@ -179,7 +179,7 @@
{{else if ne DefaultTheme "gitea"}}
{{end}}
-
+
{{template "custom/header" .}}
-
+
{{template "custom/body_outer_pre" .}}
diff --git a/templates/base/head_course.tmpl b/templates/base/head_course.tmpl
index fe21a0e05..ac5a849d2 100644
--- a/templates/base/head_course.tmpl
+++ b/templates/base/head_course.tmpl
@@ -5,7 +5,7 @@
{{if .Title}}{{.Title}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}}
-
+
{{if UseServiceWorker}}
-
-
-
-
+
+
+
+
{{if .RequireSimpleMDE}}
-
+
{{end}}
{{if .RequireTribute}}
-
+
{{end}}
@@ -137,7 +137,7 @@
{{if .RequireMinicolors}}
-
+
{{end}}
{{if .PageIsUserProfile}}
@@ -179,7 +179,7 @@
{{else if ne DefaultTheme "gitea"}}
{{end}}
-
+
{{template "custom/header" .}}
-
+
{{template "custom/body_outer_pre" .}}
diff --git a/templates/base/head_fluid.tmpl b/templates/base/head_fluid.tmpl
index 1c16e7140..851509861 100644
--- a/templates/base/head_fluid.tmpl
+++ b/templates/base/head_fluid.tmpl
@@ -5,7 +5,7 @@
{{if .Title}}{{.Title}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}}
-
+
{{if UseServiceWorker}}
-
-
-
-
+
+
+
+
{{if .RequireSimpleMDE}}
-
+
{{end}}
{{if .RequireTribute}}
-
+
{{end}}
@@ -137,7 +137,7 @@
{{if .RequireMinicolors}}
-
+
{{end}}
{{if .PageIsUserProfile}}
@@ -179,7 +179,7 @@
{{else if ne DefaultTheme "gitea"}}
{{end}}
-
+
{{template "custom/header" .}}
-
+
diff --git a/templates/base/head_home.tmpl b/templates/base/head_home.tmpl
index 6456e2a4a..77a0fcc55 100644
--- a/templates/base/head_home.tmpl
+++ b/templates/base/head_home.tmpl
@@ -5,7 +5,7 @@
{{if .Title}}{{.Title}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}}
-
+
{{if UseServiceWorker}}
-
-
-
-
+
+
+
+
-
+
{{if .RequireSimpleMDE}}
-
+
{{end}}
{{if .RequireTribute}}
-
+
{{end}}
@@ -138,7 +138,7 @@
{{if .RequireMinicolors}}
-
+
{{end}}
{{if .PageIsUserProfile}}
@@ -191,14 +191,14 @@ var _hmt = _hmt || [];
s.parentNode.insertBefore(hm, s);
})();
-
+
-
+
-
-
+
+
-
+
{{template "custom/body_outer_pre" .}}
diff --git a/templates/base/head_pro.tmpl b/templates/base/head_pro.tmpl
index c643ea873..b1f7501f8 100644
--- a/templates/base/head_pro.tmpl
+++ b/templates/base/head_pro.tmpl
@@ -5,7 +5,7 @@
{{if .Title}}{{.Title}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}}
-
+
{{if UseServiceWorker}}
-
-
-
-
+
+
+
+
{{if .RequireSimpleMDE}}
-
+
{{end}}
{{if .RequireTribute}}
-
+
{{end}}
@@ -137,7 +137,7 @@
{{if .RequireMinicolors}}
-
+
{{end}}
{{if .PageIsUserProfile}}
@@ -179,7 +179,7 @@
{{else if ne DefaultTheme "gitea"}}
{{end}}
-
+
{{template "custom/header" .}}
-
+
diff --git a/templates/custom/header.tmpl b/templates/custom/header.tmpl
index e69de29bb..cbc5f7e8f 100644
--- a/templates/custom/header.tmpl
+++ b/templates/custom/header.tmpl
@@ -0,0 +1,2 @@
+
+
diff --git a/templates/custom/home/home_top.tmpl b/templates/custom/home/home_top.tmpl
index 195c7feee..a4010f0d6 100644
--- a/templates/custom/home/home_top.tmpl
+++ b/templates/custom/home/home_top.tmpl
@@ -1786,8 +1786,40 @@
background-repeat: no-repeat;
background-size: cover;
padding: 45% 0;
- }
+ }
}
+
+ ._hm-pg-bg-4 {
+ background: url(/img/home-banner-02-1.jpg);
+ background-repeat: no-repeat;
+ background-position: center center;
+ background-size: cover;
+ }
+ ._hm-pg-bg-4-content {
+ position: absolute;
+ margin: auto;
+ left: 0;
+ top: -10%;
+ right: 0;
+ bottom: 0;
+ display: block;
+ width: 790px;
+ height: 315px;
+ background: url(/img/home-banner-02-2.png);
+ background-repeat: no-repeat;
+ background-position: center center;
+ background-size: cover;
+ }
+ @media only screen and (max-width: 767px) {
+ ._hm-pg-bg-4 {
+ background-size: 200% 100%;
+ }
+ ._hm-pg-bg-4-content {
+ top: -15%;
+ width: 90%;
+ height: 150px;
+ }
+ }
+