Browse Source

feat; isprivate not caculate

tags/v1.21.12.1
colorfulberry 4 years ago
parent
commit
4cbd1a52c7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      templates/repo/sub_menu.tmpl

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

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


Loading…
Cancel
Save