mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
Make repo size style matches others (commits/branches/tags) (#24408)
The "unit" part shouldn't have bold style.
This commit is contained in:
@@ -15,7 +15,9 @@
|
||||
</div>
|
||||
{{end}}
|
||||
<div class="item">
|
||||
<span>{{svg "octicon-database"}} <b>{{FileSize .Repository.Size}}</b></span>
|
||||
{{$fileSizeFormatted := FileSize .Repository.Size}}{{/* the formatted string is always "{val} {unit}" */}}
|
||||
{{$fileSizeFields := StringUtils.Split $fileSizeFormatted " "}}
|
||||
<span>{{svg "octicon-database"}} <b>{{.locale.PrettyNumber (index $fileSizeFields 0)}}</b> {{index $fileSizeFields 1}}</span>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user