From 5a4d8c7f20b8bae2358ebff138229ecd3018215c Mon Sep 17 00:00:00 2001 From: zouap Date: Tue, 18 Jan 2022 17:49:53 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- options/locale/locale_zh-CN.ini | 1 + templates/base/head_navbar_fluid.tmpl | 2 +- templates/base/head_navbar_home.tmpl | 2 +- templates/base/head_navbar_pro.tmpl | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 874e4446b..01cae4e2c 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -2707,6 +2707,7 @@ error.unit_not_allowed=您没有权限访问此项目单元 head.community=启智社区 head.project=项目 head.openi=启智项目 +head.openi.repo = 启智项目 head.dataset=数据集 foot.council=理事会 foot.technical_committee=技术委员会 diff --git a/templates/base/head_navbar_fluid.tmpl b/templates/base/head_navbar_fluid.tmpl index f364518cc..7cc844b76 100644 --- a/templates/base/head_navbar_fluid.tmpl +++ b/templates/base/head_navbar_fluid.tmpl @@ -42,7 +42,7 @@ {{if .IsOperator}} {{.i18n.Tr "explore.data_analysis"}} {{end}} - {{.i18n.Tr "custom.head.openi"}} + {{.i18n.Tr "custom.head.openi.repo"}} {{else if .IsLandingPageHome}} diff --git a/templates/base/head_navbar_home.tmpl b/templates/base/head_navbar_home.tmpl index 539b8bc21..7e073adb6 100644 --- a/templates/base/head_navbar_home.tmpl +++ b/templates/base/head_navbar_home.tmpl @@ -34,7 +34,7 @@ {{if .IsOperator}} {{.i18n.Tr "explore.data_analysis"}} {{end}} - {{.i18n.Tr "custom.head.openi"}} + {{.i18n.Tr "custom.head.openi.repo"}} {{else if .IsLandingPageHome}} diff --git a/templates/base/head_navbar_pro.tmpl b/templates/base/head_navbar_pro.tmpl index 45b1e7925..584ab9d5f 100644 --- a/templates/base/head_navbar_pro.tmpl +++ b/templates/base/head_navbar_pro.tmpl @@ -44,7 +44,7 @@ {{if .IsOperator}} {{.i18n.Tr "explore.data_analysis"}} {{end}} - {{.i18n.Tr "custom.head.openi"}} + {{.i18n.Tr "custom.head.openi.repo"}} {{else if .IsLandingPageHome}} From f1581cc35d4bf7b158afa29703dfb2ab8cfce23f Mon Sep 17 00:00:00 2001 From: zouap Date: Tue, 18 Jan 2022 17:56:51 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- options/locale/locale_en-US.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 26fb35ed5..a22fd885c 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -259,6 +259,7 @@ organizations = Organizations images = Cloudbrain Mirror search = Search code = Code +data_analysis=Digital Bulletin Board (test) repo_no_results = No matching repositories found. dataset_no_results = No matching datasets found. user_no_results = No matching users found. From 8bc922b8ccfc659bda5191618cafc262597550ae Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 20 Jan 2022 16:03:33 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- options/locale/locale_en-US.ini | 1 + public/home/home.js | 2 +- templates/base/head_navbar.tmpl | 2 +- templates/base/head_navbar_fluid.tmpl | 2 +- templates/base/head_navbar_home.tmpl | 2 +- templates/base/head_navbar_pro.tmpl | 2 +- templates/home.tmpl | 2 +- 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index a22fd885c..c5fd0291f 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -258,6 +258,7 @@ users = Users organizations = Organizations images = Cloudbrain Mirror search = Search +search_pro=Search projects code = Code data_analysis=Digital Bulletin Board (test) repo_no_results = No matching repositories found. diff --git a/public/home/home.js b/public/home/home.js index e3b0387d4..d7eb5ab04 100644 --- a/public/home/home.js +++ b/public/home/home.js @@ -288,7 +288,7 @@ var repoAndOrgEN={ "1":"Repository", "2":"Member ", "3":"Team", - "11":"Repositorys", + "11":"Repositories", "22":"Members ", "31":"Teams", "4":" hour ago", diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index d8d9d50f2..39caa252a 100755 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -73,7 +73,7 @@ {{if .IsOperator}} {{.i18n.Tr "explore.data_analysis"}} {{end}} - {{.i18n.Tr "custom.head.openi"}} + {{.i18n.Tr "custom.head.openi.repo"}} {{else if .IsLandingPageExplore}} diff --git a/templates/base/head_navbar_fluid.tmpl b/templates/base/head_navbar_fluid.tmpl index 7cc844b76..6628a263d 100644 --- a/templates/base/head_navbar_fluid.tmpl +++ b/templates/base/head_navbar_fluid.tmpl @@ -71,7 +71,7 @@ {{if .IsOperator}} {{.i18n.Tr "explore.data_analysis"}} {{end}} - {{.i18n.Tr "custom.head.openi"}} + {{.i18n.Tr "custom.head.openi.repo"}} {{else if .IsLandingPageExplore}} diff --git a/templates/base/head_navbar_home.tmpl b/templates/base/head_navbar_home.tmpl index 7e073adb6..a74ddffaf 100644 --- a/templates/base/head_navbar_home.tmpl +++ b/templates/base/head_navbar_home.tmpl @@ -64,7 +64,7 @@ {{if .IsOperator}} {{.i18n.Tr "explore.data_analysis"}} {{end}} - {{.i18n.Tr "custom.head.openi"}} + {{.i18n.Tr "custom.head.openi.repo"}} {{else if .IsLandingPageExplore}} diff --git a/templates/base/head_navbar_pro.tmpl b/templates/base/head_navbar_pro.tmpl index 584ab9d5f..a17c49733 100644 --- a/templates/base/head_navbar_pro.tmpl +++ b/templates/base/head_navbar_pro.tmpl @@ -74,7 +74,7 @@ {{if .IsOperator}} {{.i18n.Tr "explore.data_analysis"}} {{end}} - {{.i18n.Tr "custom.head.openi"}} + {{.i18n.Tr "custom.head.openi.repo"}} {{else if .IsLandingPageExplore}} diff --git a/templates/home.tmpl b/templates/home.tmpl index 2737afd54..19c0b1262 100755 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -38,7 +38,7 @@

{{.page_recommend_org}}

-

{{.page_recommend_org_desc}}{{.page_recommend_org_commit}}

+

{{.page_recommend_org_desc}} {{.page_recommend_org_commit}}

{{.page_recommend_org_more}}
From 2b9ff0498d0fbe0fd779c52bc9314fbf54398e8b Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 20 Jan 2022 16:32:21 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- options/locale/locale_en-US.ini | 2 +- templates/home.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index c5fd0291f..a292685cc 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -225,7 +225,7 @@ page_small_title=OpenI AI Development Cooperation Platform page_description=The one-stop collaborative development environment for AI field provides AI development pipeline integrating code development, data management, model debugging, reasoning and evaluation page_use=Use Now page_only_dynamic=Only show the dynamics of open source projects -page_recommend_org=Recommended Organization +page_recommend_org=Recommended Organizations page_recommend_org_desc=These excellent organizations are using the OpenI AI Collaboration Platform for collaborative development of projects. To show your organization here, page_recommend_org_commit=Click here to submit. page_recommend_org_more=More Organizations diff --git a/templates/home.tmpl b/templates/home.tmpl index 19c0b1262..5496aa9e1 100755 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -39,7 +39,7 @@

{{.page_recommend_org}}

{{.page_recommend_org_desc}} {{.page_recommend_org_commit}}

- {{.page_recommend_org_more}} +  {{.page_recommend_org_more}}
From 517ba35fd505618e8b2b35cdae13a53e399fae47 Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 20 Jan 2022 16:35:23 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- templates/home.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/home.tmpl b/templates/home.tmpl index 5496aa9e1..f43639a14 100755 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -39,7 +39,7 @@

{{.page_recommend_org}}

{{.page_recommend_org_desc}} {{.page_recommend_org_commit}}

-  {{.page_recommend_org_more}} + {{.page_recommend_org_more}}
@@ -57,7 +57,7 @@

{{.page_recommend_repo}}

-

{{.page_recommend_repo_desc}}{{.page_recommend_repo_commit}}{{.page_recommend_repo_go}} {{.page_recommend_repo_more}}

+

{{.page_recommend_repo_desc}} {{.page_recommend_repo_commit}}{{.page_recommend_repo_go}} {{.page_recommend_repo_more}}

From 8a0e0b4e026fa0094e31402ca0d7fc2b88ccf367 Mon Sep 17 00:00:00 2001 From: OpenIhu Date: Thu, 20 Jan 2022 16:46:21 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E9=A1=B5=E9=80=82=E9=85=8D=E5=B0=8F=E5=B1=8F=E5=B9=95=E5=88=86?= =?UTF-8?q?=E8=BE=A8=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/less/openi.less | 106 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 104 insertions(+), 2 deletions(-) diff --git a/web_src/less/openi.less b/web_src/less/openi.less index a0b533173..39789d9d9 100644 --- a/web_src/less/openi.less +++ b/web_src/less/openi.less @@ -15,8 +15,8 @@ a { } .following.bar #navbar .brand{ padding-left: 0; - padding-top: 0; - padding-bottom: 0; + padding-top: 0; + padding-bottom: 0; } .following.bar .brand .ui.mini.image { width: auto; @@ -615,4 +615,106 @@ display: block; } .a_margin{ margin: 0px !important; +} +@media only screen and (max-width: 767px) { + .following.bar #navbar .brand{ + padding-top: 6px; + } + .secondary.menu + .ui.container{ + margin-left:0 !important; + margin-right:0 !important; + } + .repo-title{ + position: absolute; + top: 6px; + left: 50px; + right: 70px; + height: 40px; + line-height: 40px !important; + text-align: center; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + color: #FFF; + background-color: #363840; + padding-left: 20px; + } + .repo-title a{ + color: #FFF !important; + } + .repo-title img + a{ + display: none !important; + } + .repository .header-wrapper{ + margin-bottom: 36px; + } + .header-wrapper .tabs.divider{ + margin-top: 40px !important; + } + .repository .ui.tabs.container{ + margin-top: -60px; + } + + .repo-title .divider, + .repo-title svg, + .repo-title img, + .ui.tabular.menu .item svg, + .ui.tabular.menu .item i, + .ui.tabular.menu .item .label, + .ui.tabular.menu .dropdown-content, + .repository.file .repository-summary, + .repository-summary + .menu, + .desc-home .edit-icon, + #repo-files-table .message, + #repo-files-table .age, + #repo-files-table .ui.sha.label, + #repo-files-table .commit-button, + .members + { + display: none !important; + } + .header-wrapper{ + display: flex; + flex-direction: column-reverse; + } + .ui.tabular.menu .item{ + padding: .5em; + } + .ui.tabular.menu .active.item{ + border: none; + background: none; + color: #000000; + border-bottom: 2px solid #000; + white-space: nowrap; + } + .repository .repo-header{ + margin-bottom: -50px; + } + .repo-header .repo-buttons{ + position: absolute; + right: 15px; + margin-bottom: -60px; + } + .repo-buttons .ui.labeled.button>.button{ + box-shadow: none !important; + width: 16px; + overflow: hidden; + white-space: nowrap; + } + .repo-buttons .ui.labeled.button>.label{ + border: none !important; + } + .repository.file.list #repo-files-table td.name{ + max-width: 100%; + } + #repo-files-table tr{ + padding-top: 0; + padding-bottom: 0; + } + .ui.attached:not(.message)+.ui.attached.segment:not(.top){ + border: none; + } + .markdown:not(code).file-view{ + padding: 2em 0!important; + } } \ No newline at end of file From dd9f3c402f757dc9107b4a312be49a452e39c41b Mon Sep 17 00:00:00 2001 From: OpenIhu Date: Thu, 20 Jan 2022 16:52:48 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E9=A1=B5=E8=8F=9C=E5=8D=95=E5=8F=96=E6=B6=88=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E7=AB=96=E6=8E=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/repo/header.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 2091610df..26f0acc6e 100755 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -90,7 +90,7 @@ {{end}}
{{if not .Repository.IsBeingCreated}} -