Browse Source

show download cnt in repo page (git-update-pack)

tags/v1.21.12.1
palytoxin 4 years ago
parent
commit
8588070e25
3 changed files with 5 additions and 0 deletions
  1. +1
    -0
      options/locale/locale_en-US.ini
  2. +1
    -0
      options/locale/locale_zh-CN.ini
  3. +3
    -0
      templates/repo/sub_menu.tmpl

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

@@ -747,6 +747,7 @@ cloudbrain=cloudbrain
cloudbrain.new=New cloudbrain
cloudbrain.desc=cloudbrain
cloudbrain.cancel=Cancel
clone_cnt=download

template.items = Template Items
template.git_content = Git Content (Default Branch)


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

@@ -753,6 +753,7 @@ cloudbrain.new=新建任务
cloudbrain.desc=云脑功能
cloudbrain.cancel=取消
cloudbrain.commit_image=提交
clone_cnt=次下载

template.items=模板选项
template.git_content=Git数据(默认分支)


+ 3
- 0
templates/repo/sub_menu.tmpl View File

@@ -13,6 +13,9 @@
<div class="item">
<a class="ui" href="#">{{svg "octicon-database" 16}} <b>{{SizeFmt .Repository.Size}}</b></a>
</div>
<div class="item">
<a class="ui" href="#">{{svg "octicon-desktop-download" 16}} <b>{{.Repository.CloneCnt}} {{.i18n.Tr "repo.clone_cnt" }}</b></a>
</div>
{{end}}
</div>
</div>


Loading…
Cancel
Save