From 15c6bb500b8b395ab7ca61498f5415b9f583213c Mon Sep 17 00:00:00 2001 From: Allen Wild Date: Tue, 27 Mar 2018 10:13:20 -0400 Subject: Add repository setting to enable/disable health checks (#3607) New Feature: * Repository struct field for IsFsckEnabled (default true of course) * Admin Settings section on repo options page, accessible only by admin users Possible Enhancements: * There's no way to force running health checks on all repos regardless of their IsFsckEnabled setting. This would be useful if there were an admin API or dashboard button to run fsck immediately. Issue: https://github.com/go-gitea/gitea/issues/1712 Signed-off-by: Allen Wild --- templates/repo/settings/options.tmpl | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'templates') diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 01814dcca8..8470d6a5e2 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -236,6 +236,29 @@ + {{if .IsAdmin}} +

+ {{.i18n.Tr "repo.settings.admin_settings"}} +

+
+
+ {{.CsrfTokenHtml}} + +
+
+ + +
+
+ +
+
+ +
+
+
+ {{end}} + {{if .IsRepositoryOwner}}

{{.i18n.Tr "repo.settings.danger_zone"}} -- cgit v1.2.3