All done for Global Repo Size Option

This commit is contained in:
truecode112
2023-05-15 17:16:04 +00:00
committed by DmitryFrolovTri
parent d843a6736b
commit 0231760b60
+4 -2
View File
@@ -15,15 +15,17 @@
<div class="inline field">
<label>{{.locale.Tr "repo.repo_size"}}</label>
<span {{if .Err_RepoSize}}class="ui text red"{{end}}>{{FileSize .Repository.Size}}
{{if and .Repository.SizeLimit .EnableSizeLimit}}
{{if .ActualSizeLimit }}
{{if .EnableSizeLimit }}
/{{FileSize .ActualSizeLimit}}
{{end }}
{{end}}
</span>
</div>
<div class="field {{if .Err_RepoSizeLimit}}error{{end}}" {{if not .IsAdmin}}style="display:none;"{{end}}>
<label for="repo_size_limit">{{.locale.Tr "repo.repo_size_limit"}}</label>
<input id="repo_size_limit" name="repo_size_limit"
{{if .EnableSizeLimit}}class="ui text light grey"{{end}}
{{if not .EnableSizeLimit}}class="ui text light grey"{{end}}
type="number" value="{{.Repository.SizeLimit}}" data-repo-size-limit="{{.Repository.SizeLimit}}">
</div>
<div class="inline field">