From 8588070e25c56921b4f01bf11948406b8646dd38 Mon Sep 17 00:00:00 2001 From: palytoxin Date: Tue, 26 Jan 2021 16:20:51 +0800 Subject: [PATCH] show download cnt in repo page (git-update-pack) --- options/locale/locale_en-US.ini | 1 + options/locale/locale_zh-CN.ini | 1 + templates/repo/sub_menu.tmpl | 3 +++ 3 files changed, 5 insertions(+) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index edb3b2ce0..16a739406 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -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) diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 0398d5655..c2f37b976 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -753,6 +753,7 @@ cloudbrain.new=新建任务 cloudbrain.desc=云脑功能 cloudbrain.cancel=取消 cloudbrain.commit_image=提交 +clone_cnt=次下载 template.items=模板选项 template.git_content=Git数据(默认分支) diff --git a/templates/repo/sub_menu.tmpl b/templates/repo/sub_menu.tmpl index cd000d474..d1b73a9b0 100644 --- a/templates/repo/sub_menu.tmpl +++ b/templates/repo/sub_menu.tmpl @@ -13,6 +13,9 @@
{{svg "octicon-database" 16}} {{SizeFmt .Repository.Size}}
+
+ {{svg "octicon-desktop-download" 16}} {{.Repository.CloneCnt}} {{.i18n.Tr "repo.clone_cnt" }} +
{{end}}