From c1be811954b65350fc4319fc7f537ce4ed60980f Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Tue, 2 Nov 2021 16:52:32 +0800 Subject: [PATCH 01/34] fix issue #497 --- templates/repo/view_file.tmpl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 1216b5f40..7c98420d9 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -34,6 +34,21 @@ {{end}} + + {{if .ReadmeInList}} +
+
+ {{if .Repository.CanEnableEditor}} + {{if .CanEditFile}} + {{svg "octicon-pencil" 16}} + {{else}} + {{svg "octicon-pencil" 16}} + {{end}} + {{end}} +
+
+ {{end}} + {{if not .ReadmeInList}}
From ad2831e81a653e3cc554281eb45d5569262adc05 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Tue, 2 Nov 2021 17:45:29 +0800 Subject: [PATCH 02/34] fix issue --- templates/repo/view_file.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 7c98420d9..60777b5dd 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -63,7 +63,7 @@ {{.i18n.Tr "repo.file_history"}}
{{if .Repository.CanEnableEditor}} - {{if .CanEditFile}} + {{.CanEditFile}}{{if .CanEditFile}} {{svg "octicon-pencil" 16}} {{else}} {{svg "octicon-pencil" 16}} From 99f4bc4958733cbaaca20c548760f66fbf9f509f Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 3 Nov 2021 11:21:22 +0800 Subject: [PATCH 03/34] fix issue --- public/img/git-logo.svg | 33 +++++++++++++++++++++++++++++++++ templates/base/head_navbar.tmpl | 8 ++++++++ 2 files changed, 41 insertions(+) create mode 100644 public/img/git-logo.svg diff --git a/public/img/git-logo.svg b/public/img/git-logo.svg new file mode 100644 index 000000000..c006bc090 --- /dev/null +++ b/public/img/git-logo.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index c22cb9fa7..57df408c9 100755 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -7,6 +7,14 @@
+
+
+ + + +
+ + {{if .IsSigned}} {{.i18n.Tr "index"}} From 9538871d6e1bab29f4789fd0d2b14a5eda3a94df Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 3 Nov 2021 17:45:51 +0800 Subject: [PATCH 04/34] change logo.svg --- public/img/git-logo.svg | 60 +++++++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 26 deletions(-) diff --git a/public/img/git-logo.svg b/public/img/git-logo.svg index c006bc090..70e6ab484 100644 --- a/public/img/git-logo.svg +++ b/public/img/git-logo.svg @@ -1,33 +1,41 @@ + viewBox="0 0 96 17.3" style="enable-background:new 0 0 96 17.3;" xml:space="preserve"> - - - - - - - - - - - + + + + + + + From 0137f56d9920b91554801bbce7d6beb5d2e26418 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Thu, 4 Nov 2021 11:00:10 +0800 Subject: [PATCH 05/34] fix issue #596 --- options/locale/locale_en-US.ini | 1 + options/locale/locale_zh-CN.ini | 1 + templates/repo/header.tmpl | 95 +++++++++++++++++++++++---------- 3 files changed, 70 insertions(+), 27 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 7fa8c7a4f..da43279f8 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -755,6 +755,7 @@ unit_disabled = The site administrator has disabled this repository section. language_other = Other datasets = Datasets datasets.desc = Enable Dataset +cloudbrain_helper=Use GPU/NPU resources to open notebooks, model training tasks, etc. debug=Debug stop=Stop diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 81b4a8459..fffee7af8 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -757,6 +757,7 @@ unit_disabled=站点管理员已禁用此项目单元。 language_other=其它 datasets=数据集 datasets.desc=数据集功能 +cloudbrain_helper=使用GPU/NPU资源,开启Notebook、模型训练任务等 debug=调试 stop=停止 diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index c290de552..747857ce3 100755 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -88,20 +88,69 @@ {{end}} +
{{if not .Repository.IsBeingCreated}} {{end}} -
{{if not .Repository.IsBeingCreated}}