diff options
author | Philip Peterson <philip-peterson@users.noreply.github.com> | 2023-03-13 00:51:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-13 15:51:07 +0800 |
commit | 757b4c17e900f1d11a81bc9467d90e6c245ee8f2 (patch) | |
tree | d73ad5cfdcd0b7db80ee26461b946f68223e7fb8 /templates/admin | |
parent | f521e88240a2d5dd41ee42d78b96fc89309f1790 (diff) | |
download | gitea-757b4c17e900f1d11a81bc9467d90e6c245ee8f2.tar.gz gitea-757b4c17e900f1d11a81bc9467d90e6c245ee8f2.zip |
Support reflogs (#22451)
This PR adds support for reflogs on all repositories. It does this by
adding a global configuration entry.
Implements #14865
---------
Signed-off-by: Philip Peterson <philip.c.peterson@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/config.tmpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 8f572c8396..cc0580cc19 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -331,7 +331,19 @@ <dd>{{.Git.MaxGitDiffFiles}}</dd> <dt>{{.locale.Tr "admin.config.git_gc_args"}}</dt> <dd><code>{{.Git.GCArgs}}</code></dd> + <div class="ui divider"></div> + + <dt>{{.locale.Tr "admin.config.git_enable_reflogs"}}</dt> + <dd>{{if .Git.Reflog.Enabled}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> + + {{if .Git.Reflog.Enabled}} + <dt>{{.locale.Tr "admin.config.git_reflog_expiry_time"}}</dt> + <dd>{{.locale.Tr "tool.days" .Git.Reflog.Expiration}}</dd> + {{end}} + + <div class="ui divider"></div> + <dt>{{.locale.Tr "admin.config.git_migrate_timeout"}}</dt> <dd>{{.Git.Timeout.Migrate}} {{.locale.Tr "tool.raw_seconds"}}</dd> <dt>{{.locale.Tr "admin.config.git_mirror_timeout"}}</dt> |