diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index 0a8232f58bd..df028f30483 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -15,15 +15,17 @@
{{FileSize .Repository.Size}}
- {{if and .Repository.SizeLimit .EnableSizeLimit}}
+ {{if .ActualSizeLimit }}
+ {{if .EnableSizeLimit }}
/{{FileSize .ActualSizeLimit}}
+ {{end }}
{{end}}