mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-18 01:20:31 +02:00
refactor messages and admin settings to latest gitea
This commit is contained in:
parent
de1b2d8ab8
commit
56d388e111
@ -3452,6 +3452,9 @@ config.git_guide_remote_name = Repository remote name for git commands in the gu
|
||||
config.repository_config = Repository Configuration
|
||||
config.enable_size_limit = Enable Size Limit
|
||||
config.repo_size_limit = Default Repository Size Limit
|
||||
config.repo_size_limit.desc = Maximum repository size in MiB. Leave empty for no limit.
|
||||
config.global_repo_size_limit_manage_panel = Manage Global Repository Size Limit
|
||||
config.update_settings = Update Settings
|
||||
config.invalid_repo_size = Invalid repository size %s
|
||||
config.save_repo_size_setting_failed = Failed to save global repository settings %s
|
||||
config.repository_setting_success = Global repository setting has been updated
|
||||
|
||||
@ -89,7 +89,7 @@ func UpdateRepoPost(ctx *context.Context) {
|
||||
}
|
||||
|
||||
ctx.Flash.Success(ctx.Tr("admin.config.repository_setting_success"))
|
||||
ctx.Redirect(setting.AppSubURL + "/admin/repos")
|
||||
ctx.Redirect(setting.AppSubURL + "/-/admin/repos")
|
||||
}
|
||||
|
||||
// DeleteRepo delete one repository
|
||||
|
||||
@ -1,23 +1,23 @@
|
||||
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin")}}
|
||||
<div class="admin-setting-content">
|
||||
<h4 class="ui top attached header">
|
||||
{{.locale.Tr "admin.config.repository_config"}}
|
||||
{{ctx.Locale.Tr "admin.config.global_repo_size_limit_manage_panel"}}
|
||||
</h4>
|
||||
<div class="ui attached segment">
|
||||
<form class="ui form" action="{{.Link}}" method="post">
|
||||
{{.CsrfTokenHtml}}
|
||||
<div class="inline field">
|
||||
<label>{{.locale.Tr "admin.config.enable_size_limit"}}</label>
|
||||
<label>{{ctx.Locale.Tr "admin.config.enable_size_limit"}}</label>
|
||||
<div class="ui checkbox">
|
||||
<input name="enable_size_limit" type="checkbox" {{if .EnableSizeLimit}}checked{{end}}>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inline field {{if .Err_Repo_Size_Limit}}error{{end}}">
|
||||
<label for="repo_size_limit">{{.locale.Tr "admin.config.repo_size_limit"}}</label>
|
||||
<input id="repo_size_limit" name="repo_size_limit" value="{{.RepoSizeLimit}}">
|
||||
<label for="repo_size_limit">{{ctx.Locale.Tr "admin.config.repo_size_limit"}}</label>
|
||||
<input id="repo_size_limit" name="repo_size_limit" value="{{.RepoSizeLimit}}" data-tooltip-content='{{ctx.Locale.Tr "admin.config.repo_size_limit.desc"}}'>
|
||||
</div>
|
||||
<div class="field">
|
||||
<button class="ui green button">{{$.locale.Tr "repo.settings.update_settings"}}</button>
|
||||
<button class="ui green button">{{ctx.Locale.Tr "admin.config.update_settings"}}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user