Browse Source

fix issue

pull/1425/head
zhoupzh 3 years ago
parent
commit
b9906ca8cd
3 changed files with 13 additions and 5 deletions
  1. +4
    -0
      options/locale/locale_en-US.ini
  2. +3
    -0
      options/locale/locale_zh-CN.ini
  3. +6
    -5
      templates/repo/courseHome.tmpl

+ 4
- 0
options/locale/locale_en-US.ini View File

@@ -873,6 +873,10 @@ get_repo_info_error=Can not get the information of the repository.
generate_statistic_file_error=Fail to generate file.
repo_stat_inspect=ProjectAnalysis
all=All

computing.all = All
computing.Introduction=Introduction

modelarts.status=Status
modelarts.createtime=CreateTime
modelarts.version_nums = Version Nums


+ 3
- 0
options/locale/locale_zh-CN.ini View File

@@ -881,6 +881,9 @@ generate_statistic_file_error=生成文件失败。
repo_stat_inspect=项目分析
all=所有

computing.all=全部
computing.Introduction=简介

modelarts.status=状态
modelarts.createtime=创建时间
modelarts.version_nums=版本数


+ 6
- 5
templates/repo/courseHome.tmpl View File

@@ -105,7 +105,7 @@
</div>
{{end}}
<div>
<span>简介:</span>
<span>{{.i18n.Tr "repo.computing.Introduction"}}:</span>
{{if .Repository.DescriptionHTML}}
<span class="description" style="color: #8a8e99;">{{.Repository.DescriptionHTML}}</span>
{{else}}
@@ -121,7 +121,8 @@
</div>
<a style="margin-left: 0.5rem;" id="manage_topic">
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}<i style="cursor: pointer;" class="plus square outline icon"></i>{{end}}添加标签
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}<i style="cursor: pointer;" class="plus square outline icon"></i>{{end}}
{{.i18n.Tr "repo.issues.new.add_labels_title"}}
</a>
<div id="topic_edit" class="vue_menu" style="display:none;">
@@ -272,12 +273,12 @@
<h4 class="ui header" style="border-bottom: 1px solid rgba(225, 227, 230, 100);padding: 0.5rem 0;">
{{$lenCon := len .ContributorInfo}}
{{if lt $lenCon 25 }}
<strong>贡献者 ({{len .ContributorInfo}})</strong>
<strong>{{.i18n.Tr "home.contributors"}} ({{len .ContributorInfo}})</strong>
{{else}}
<strong>贡献者 ({{len .ContributorInfo}}+)</strong>
<strong>{{.i18n.Tr "home.contributors"}} ({{len .ContributorInfo}}+)</strong>
{{end}}
<div class="ui right">
<a class="membersmore text grey" href="{{.RepoLink}}/contributors?type={{if .IsViewBranch}}branch{{else}}tag{{end}}&name={{.BranchName}}">全部 {{svg "octicon-chevron-right" 16}}</a>
<a class="membersmore text grey" href="{{.RepoLink}}/contributors?type={{if .IsViewBranch}}branch{{else}}tag{{end}}&name={{.BranchName}}">{{.i18n.Tr "repo.computing.all"}} {{svg "octicon-chevron-right" 16}}</a>
</div>
</h4>
<div class="ui members" id="contributorInfo">


Loading…
Cancel
Save