diff --git a/custom/templates/base/head_navbar.tmpl b/custom/templates/base/head_navbar.tmpl index 0bc80a53d..a61ae6e29 100644 --- a/custom/templates/base/head_navbar.tmpl +++ b/custom/templates/base/head_navbar.tmpl @@ -104,6 +104,9 @@ {{svg "octicon-plus" 16}} {{.i18n.Tr "new_repo"}} + + {{svg "octicon-plus" 16}} {{.i18n.Tr "new_dataset"}} + {{svg "octicon-repo-clone" 16}} {{.i18n.Tr "new_migrate"}} diff --git a/custom/templates/datasets/dataset_list.tmpl b/custom/templates/datasets/dataset_list.tmpl new file mode 100644 index 000000000..934ddd6ad --- /dev/null +++ b/custom/templates/datasets/dataset_list.tmpl @@ -0,0 +1,52 @@ +
+

+ {{.i18n.Tr "datasets"}} +

+ + +
+
+ {{range .datasets}} +
+
+ + {{.Title}} + +
+ {{svg "octicon-tasklist" 16}} {{.Task}} + {{svg "octicon-tag" 16}}{{.Category}} + {{svg "octicon-flame" 16}} 24 +
+
+
+
{{.Description}}
+

{{$.i18n.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix $.i18n.Lang}}

+
+
+ {{else}} +
+ {{$.i18n.Tr "explore.dataset_no_results"}} +
+ {{end}} +
+
diff --git a/custom/templates/datasets/dataset_search.tmpl b/custom/templates/datasets/dataset_search.tmpl new file mode 100644 index 000000000..6c973026a --- /dev/null +++ b/custom/templates/datasets/dataset_search.tmpl @@ -0,0 +1,14 @@ +
+
+
+
+
+ + + + +
+
+
+
+
\ No newline at end of file diff --git a/custom/templates/datasets/index.tmpl b/custom/templates/datasets/index.tmpl new file mode 100644 index 000000000..cefe2fc02 --- /dev/null +++ b/custom/templates/datasets/index.tmpl @@ -0,0 +1,9 @@ +{{template "base/head" .}} +
+ {{template "datasets/dataset_search" .}} +
+ {{template "datasets/dataset_list" .}} + {{template "base/paginate" .}} +
+
+{{template "base/footer" .}} \ No newline at end of file diff --git a/custom/templates/explore/repo_search.tmpl b/custom/templates/explore/repo_search.tmpl index 730546f4f..6c973026a 100644 --- a/custom/templates/explore/repo_search.tmpl +++ b/custom/templates/explore/repo_search.tmpl @@ -1,7 +1,7 @@
-
+
@@ -9,9 +9,6 @@
-
- 热搜: -
\ No newline at end of file diff --git a/custom/templates/explore/users.tmpl b/custom/templates/explore/users.tmpl index c900d05a9..7b113e20d 100644 --- a/custom/templates/explore/users.tmpl +++ b/custom/templates/explore/users.tmpl @@ -4,8 +4,8 @@
{{template "explore/navbar" .}} -
- +
+

{{.i18n.Tr "explore.users"}}

@@ -26,9 +26,9 @@
- +
- +
{{range .Users}}
@@ -56,7 +56,7 @@
{{template "explore/repo_right" .}}
- +