summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2021-12-03 04:33:34 +0100
committerGitHub <noreply@github.com>2021-12-03 11:33:34 +0800
commit6ceef876719c618e3f935337a70019040701076a (patch)
tree73b40653545c0e28305f47117f69fe016a1188f3 /templates
parent03ec9e5060dd4874aec46ab1e0382b2bf7886f8f (diff)
downloadgitea-6ceef876719c618e3f935337a70019040701076a.tar.gz
gitea-6ceef876719c618e3f935337a70019040701076a.zip
Removed SizeFmt. (#17890)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/admin/repo/list.tmpl2
-rw-r--r--templates/repo/settings/options.tmpl2
-rw-r--r--templates/repo/sub_menu.tmpl2
-rw-r--r--templates/user/settings/repos.tmpl4
4 files changed, 5 insertions, 5 deletions
diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl
index 4059cb5deb..d7561dde7d 100644
--- a/templates/admin/repo/list.tmpl
+++ b/templates/admin/repo/list.tmpl
@@ -82,7 +82,7 @@
<td>{{.NumStars}}</td>
<td>{{.NumForks}}</td>
<td>{{.NumIssues}}</td>
- <td>{{SizeFmt .Size}}</td>
+ <td>{{FileSize .Size}}</td>
<td><span title="{{.CreatedUnix.FormatLong}}">{{.CreatedUnix.FormatShort}}</span></td>
<td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Paginater.Current}}&sort={{$.SortType}}" data-id="{{.ID}}" data-name="{{.Name}}">{{svg "octicon-trash"}}</a></td>
</tr>
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index a762f63161..c911a83c98 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -18,7 +18,7 @@
</div>
<div class="inline field">
<label>{{.i18n.Tr "repo.repo_size"}}</label>
- <span>{{SizeFmt .Repository.Size}}</span>
+ <span>{{FileSize .Repository.Size}}</span>
</div>
<div class="inline field">
<label>{{.i18n.Tr "repo.template"}}</label>
diff --git a/templates/repo/sub_menu.tmpl b/templates/repo/sub_menu.tmpl
index 1fec6dcec1..5ba88f7356 100644
--- a/templates/repo/sub_menu.tmpl
+++ b/templates/repo/sub_menu.tmpl
@@ -14,7 +14,7 @@
</div>
{{end}}
<div class="item">
- <span class="ui">{{svg "octicon-database"}} <b>{{SizeFmt .Repository.Size}}</b></span>
+ <span class="ui">{{svg "octicon-database"}} <b>{{FileSize .Repository.Size}}</b></span>
</div>
{{end}}
</div>
diff --git a/templates/user/settings/repos.tmpl b/templates/user/settings/repos.tmpl
index 74f2bc0574..0e19b6e3f2 100644
--- a/templates/user/settings/repos.tmpl
+++ b/templates/user/settings/repos.tmpl
@@ -27,7 +27,7 @@
<span class="icon">{{svg "octicon-repo"}}</span>
{{end}}
<a class="name" href="{{$repo.Link}}">{{$repo.OwnerName}}/{{$repo.Name}}</a>
- <span>{{SizeFmt $repo.Size}}</span>
+ <span>{{FileSize $repo.Size}}</span>
{{if $repo.IsFork}}
{{$.i18n.Tr "repo.forked_from"}}
<span><a href="{{$repo.BaseRepo.Link}}">{{$repo.BaseRepo.OwnerName}}/{{$repo.BaseRepo.Name}}</a></span>
@@ -120,7 +120,7 @@
<span class="iconFloat">{{svg "octicon-repo"}}</span>
{{end}}
<a class="name" href="{{.Link}}">{{.OwnerName}}/{{.Name}}</a>
- <span>{{SizeFmt .Size}}</span>
+ <span>{{FileSize .Size}}</span>
{{if .IsFork}}
{{$.i18n.Tr "repo.forked_from"}}
<span><a href="{{.BaseRepo.Link}}">{{.BaseRepo.OwnerName}}/{{.BaseRepo.Name}}</a></span>