From 4605e1a3f4e691c3b82f4b461c0fc452d219697b Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Wed, 11 Aug 2021 13:45:24 +0800 Subject: [PATCH 1/3] add link to vscode to repo header Signed-off-by: a1012112796 <1012112796@qq.com> --- options/locale/locale_en-US.ini | 1 + templates/repo/clone_buttons.tmpl | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index ccf19293ff8bf..21f8f20f4bce1 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -768,6 +768,7 @@ fork_repo = Fork Repository fork_from = Fork From fork_visibility_helper = The visibility of a forked repository cannot be changed. use_template = Use this template +clone_in_ide = Clone in IDE generate_repo = Generate Repository generate_from = Generate From repo_desc = Description diff --git a/templates/repo/clone_buttons.tmpl b/templates/repo/clone_buttons.tmpl index 8fc1ba12c13d3..676c5179b9ac9 100644 --- a/templates/repo/clone_buttons.tmpl +++ b/templates/repo/clone_buttons.tmpl @@ -1,3 +1,19 @@ +{{if not $.DisableHTTP}} + +{{end}} + {{if not $.DisableHTTP}} diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 254bbb7380bcb..a2033bead38fc 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -105,7 +105,7 @@ {{end}} {{end}} -
+
{{if eq $n 0}}
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index e87560fb8b0a2..8af6bfda61dc3 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -184,6 +184,10 @@ } } + .fitted.item.clone-panel { + margin-right: 35px; + } + #clone-panel { width: 350px; From 72f860bfafa3e940b3fb6140f753362d0a777459 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Thu, 12 Aug 2021 19:22:20 +0800 Subject: [PATCH 3/3] ui change --- options/locale/locale_en-US.ini | 4 +++- templates/repo/clone_buttons.tmpl | 14 -------------- templates/repo/home.tmpl | 9 ++++++--- web_src/less/_repository.less | 4 ---- 4 files changed, 9 insertions(+), 22 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 21f8f20f4bce1..0c875a1fcbb2e 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -768,7 +768,9 @@ fork_repo = Fork Repository fork_from = Fork From fork_visibility_helper = The visibility of a forked repository cannot be changed. use_template = Use this template -clone_in_ide = Clone in IDE +clone_in_vsc = Clone in VS Code +download_zip = Download ZIP +download_tar = Download TAR.GZ generate_repo = Generate Repository generate_from = Generate From repo_desc = Description diff --git a/templates/repo/clone_buttons.tmpl b/templates/repo/clone_buttons.tmpl index 41b4d4fa77d17..8fc1ba12c13d3 100644 --- a/templates/repo/clone_buttons.tmpl +++ b/templates/repo/clone_buttons.tmpl @@ -1,18 +1,4 @@ {{if not $.DisableHTTP}} - - diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index a2033bead38fc..5629c7ee121fd 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -105,7 +105,7 @@ {{end}} {{end}}
-
+
{{if eq $n 0}} diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 8af6bfda61dc3..e87560fb8b0a2 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -184,10 +184,6 @@ } } - .fitted.item.clone-panel { - margin-right: 35px; - } - #clone-panel { width: 350px;