mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-30 18:43:35 +02:00
All done for Global Repo Size Option
This commit is contained in:
committed by
DmitryFrolovTri
parent
d843a6736b
commit
0231760b60
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user