diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 7e4fa95a84..5f42d0bf25 100755 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -58,13 +58,13 @@ {{/* {{.i18n.Tr "explore.data_analysis"}} */}} {{.i18n.Tr "explore.data_analysis"}} {{end}} - {{.i18n.Tr "custom.head.course"}} + {{.i18n.Tr "custom.head.course"}} {{.i18n.Tr "custom.head.openi.repo"}} 科技2030项目 - {{.i18n.Tr "custom.head.forum"}} + {{.i18n.Tr "custom.head.forum"}} {{else if .IsLandingPageHome}}
- {{.i18n.Tr "custom.head.forum"}} + {{.i18n.Tr "custom.head.forum"}} {{else if .IsLandingPageExplore}} {{.i18n.Tr "home"}} {{else if .IsLandingPageOrganizations}} diff --git a/templates/base/head_navbar_fluid.tmpl b/templates/base/head_navbar_fluid.tmpl index 70cc3a27f7..af9a6a323f 100644 --- a/templates/base/head_navbar_fluid.tmpl +++ b/templates/base/head_navbar_fluid.tmpl @@ -55,12 +55,12 @@ {{/* {{.i18n.Tr "explore.data_analysis"}} */}} {{.i18n.Tr "explore.data_analysis"}} {{end}} - {{.i18n.Tr "custom.head.course"}} + {{.i18n.Tr "custom.head.course"}} {{.i18n.Tr "custom.head.openi.repo"}} 科技2030项目 - {{.i18n.Tr "custom.head.forum"}} + {{.i18n.Tr "custom.head.forum"}} {{else if .IsLandingPageHome}}
- {{.i18n.Tr "custom.head.forum"}} + {{.i18n.Tr "custom.head.forum"}} {{else if .IsLandingPageExplore}} {{.i18n.Tr "home"}} {{else if .IsLandingPageOrganizations}} diff --git a/templates/base/head_navbar_home.tmpl b/templates/base/head_navbar_home.tmpl index fa051d15a3..e25d925e4a 100644 --- a/templates/base/head_navbar_home.tmpl +++ b/templates/base/head_navbar_home.tmpl @@ -47,13 +47,13 @@ {{/* {{.i18n.Tr "explore.data_analysis"}} */}} {{.i18n.Tr "explore.data_analysis"}} {{end}} - {{.i18n.Tr "custom.head.course"}} + {{.i18n.Tr "custom.head.course"}} {{.i18n.Tr "custom.head.openi.repo"}} 科技2030项目 - {{.i18n.Tr "custom.head.forum"}} + {{.i18n.Tr "custom.head.forum"}} {{else if .IsLandingPageHome}}
- {{.i18n.Tr "custom.head.forum"}} + {{.i18n.Tr "custom.head.forum"}} {{else if .IsLandingPageExplore}} {{.i18n.Tr "home"}} {{else if .IsLandingPageOrganizations}} diff --git a/templates/base/head_navbar_pro.tmpl b/templates/base/head_navbar_pro.tmpl index 99b7248819..8bfc0af72b 100644 --- a/templates/base/head_navbar_pro.tmpl +++ b/templates/base/head_navbar_pro.tmpl @@ -57,13 +57,13 @@ {{/* {{.i18n.Tr "explore.data_analysis"}} */}} {{.i18n.Tr "explore.data_analysis"}} {{end}} - {{.i18n.Tr "custom.head.course"}} + {{.i18n.Tr "custom.head.course"}} {{.i18n.Tr "custom.head.openi.repo"}} 科技2030项目 - {{.i18n.Tr "custom.head.forum"}} + {{.i18n.Tr "custom.head.forum"}} {{else if .IsLandingPageHome}}
- {{.i18n.Tr "custom.head.forum"}} + {{.i18n.Tr "custom.head.forum"}} {{else if .IsLandingPageExplore}} {{.i18n.Tr "home"}} {{else if .IsLandingPageOrganizations}} diff --git a/templates/repo/datasets/index.tmpl b/templates/repo/datasets/index.tmpl index 21eb84f430..85053f3dff 100755 --- a/templates/repo/datasets/index.tmpl +++ b/templates/repo/datasets/index.tmpl @@ -180,7 +180,7 @@ {{$.i18n.Tr "dataset.unfavorite"}} - diff --git a/web_src/js/index.js b/web_src/js/index.js index 578791b5ff..c7a7d144f4 100755 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -4285,6 +4285,9 @@ function initVueDataset() { console.log(err); }); }, + goLogin() { + window.location.href = `/user/login?redirect_to=${encodeURIComponent(window.location.href)}`; + }, postStar(id, link) { if (this.star_active) { let url = link + "/" + id + "/unstar";