Browse Source

Merge pull request 'feat; isprivate not caculate' (#156) from is_private into develop

Reviewed-by: palytoxin <sxty32@126.com>
master
berry 4 years ago
parent
commit
006c4c990a
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"> <div class="item">
<a class="ui" href="#">{{svg "octicon-database" 16}} <b>{{SizeFmt .Repository.Size}}</b></a> <a class="ui" href="#">{{svg "octicon-database" 16}} <b>{{SizeFmt .Repository.Size}}</b></a>
</div> </div>
{{if (not .IsPrivate)}}
<div class="item"> <div class="item">
<a class="ui" href="#">{{svg "octicon-desktop-download" 16}} <b>{{.Repository.CloneCnt}} {{.i18n.Tr "repo.clone_cnt" }}</b></a> <a class="ui" href="#">{{svg "octicon-desktop-download" 16}} <b>{{.Repository.CloneCnt}} {{.i18n.Tr "repo.clone_cnt" }}</b></a>
</div> </div>
{{end}}
{{end}} {{end}}
</div> </div>
</div> </div>


Loading…
Cancel
Save