File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6262 {{svg " octicon-cross-reference" }} {{ctx.Locale.Tr " repo.cite_this_repo" }}
6363 </a>
6464 {{end }}
65+ <span class= " flex-text-block muted" {{if not (eq .Repository.Size 0)}}data-tooltip-placement= " top" data-tooltip-content= " {{.Repository.SizeDetailsString}}" {{end }}>
66+ {{$fileSizeFormatted := FileSize .Repository.Size }}{{/* the formatted string is always "{val} {unit}" */ }}
67+ {{$fileSizeFields := StringUtils.Split $fileSizeFormatted " " }}
68+ {{svg " octicon-database" }} <b>{{ctx.Locale.PrettyNumber (index $fileSizeFields 0)}}</b> {{index $fileSizeFields 1}}
69+ </span>
6570 </div>
6671 </div>
6772 </div>
Original file line number Diff line number Diff line change 1313 {{svg " octicon-tag" }} <b>{{ctx.Locale.PrettyNumber .NumTags }}</b> {{ctx.Locale.TrN .NumTags " repo.tag" " repo.tags" }}
1414 </a>
1515 {{end }}
16- <span class= " item not-mobile" {{if not (eq .Repository.Size 0)}}data-tooltip-placement= " top" data-tooltip-content= " {{.Repository.SizeDetailsString}}" {{end }}>
17- {{$fileSizeFormatted := FileSize .Repository.Size }}{{/* the formatted string is always "{val} {unit}" */ }}
18- {{$fileSizeFields := StringUtils.Split $fileSizeFormatted " " }}
19- {{svg " octicon-database" }} <b>{{ctx.Locale.PrettyNumber (index $fileSizeFields 0)}}</b> {{index $fileSizeFields 1}}
20- </span>
2116 {{end }}
2217 </div>
2318</div>
You can’t perform that action at this time.
0 commit comments