diff --git a/modules/repository/init.go b/modules/repository/init.go index 3d1c663c8..5dc352d65 100644 --- a/modules/repository/init.go +++ b/modules/repository/init.go @@ -51,7 +51,7 @@ func prepareRepoCommit(ctx models.DBContext, repo *models.Repository, tmpDir, re cloneLink := repo.CloneLink() match := map[string]string{ - "Name": repo.Name, + "Name": repo.DisplayName(), "Description": repo.Description, "CloneURL.SSH": cloneLink.SSH, "CloneURL.HTTPS": cloneLink.HTTPS, diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index d5eac032b..a74cd7d97 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -377,8 +377,8 @@ SSPIDefaultLanguage=默认语言 require_error=不能为空。 alpha_dash_error=应该只包含字母数字、破折号 ('-') 和下划线 ('_') 字符。 alpha_dash_dot_error=应该只包含字母数字, 破折号 ('-'), 下划线 ('_') 和点 ('. ') 。 -reponame_dash_dot_error=请输入中文、字母、数字和-_.、最多100个字符。 -repoadd_dash_dot_error=路径只允许字母、数字和-_.,最多100个字符。 +reponame_dash_dot_error=请输入中文、字母、数字和-_ .,最多100个字符。 +repoadd_dash_dot_error=路径只允许字母、数字和-_ .,最多100个字符。 git_ref_name_error=` 必须是格式良好的 git 引用名称。` alpha_dash_dot_chinese_error=应该只包含字母数字中文, 破折号 ('-'), 下划线 ('_') 和点 ('. ') 。 size_error=长度必须为 %s。 diff --git a/templates/org/repo_list.tmpl b/templates/org/repo_list.tmpl index eab03c591..c763f8976 100644 --- a/templates/org/repo_list.tmpl +++ b/templates/org/repo_list.tmpl @@ -33,7 +33,7 @@ {{end}} - {{if or $.PageIsExplore $.PageIsProfileStarList }}{{if .Owner}}{{.Owner.Name}} / {{end}}{{end}}{{.Name}} + {{if or $.PageIsExplore $.PageIsProfileStarList }}{{if .Owner}}{{.Owner.Name}} / {{end}}{{end}}{{if .Alias}}{{.Alias}}{{else}}{{.Name}}{{end}} {{if .IsArchived}}{{end}} {{if .IsPrivate}} @@ -70,4 +70,4 @@ {{$.i18n.Tr "explore.repo_no_results"}} {{end}} - + \ No newline at end of file diff --git a/templates/org/select_pro.tmpl b/templates/org/select_pro.tmpl index 647bccd57..220dba9a5 100755 --- a/templates/org/select_pro.tmpl +++ b/templates/org/select_pro.tmpl @@ -87,7 +87,7 @@
- {{.Name}} + {{if .Alias}}{{.Alias}}{{else}}{{.Name}}{{end}}
@@ -165,6 +165,7 @@