From 395a6fabf356c258570a7d0cba0b6693984edac2 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 5 Jun 2023 17:23:09 +0200 Subject: [PATCH] fix "Remove stars when repo goes private #19904" (#25084) https://github.com/go-gitea/gitea/pull/19904#discussion_r1218111682 --- templates/repo/settings/options.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 809fd87dc6..1e940c581b 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -26,7 +26,7 @@ {{if not .Repository.IsFork}} <div class="inline field"> <label>{{.locale.Tr "repo.visibility"}}</label> - <div class="ui checkbox{{if and (not .Repository.IsPrivate) (gt .Repository.NumStars 0)}} tooltip{{end}}" data-content="{{.locale.Tr "repo.stars_remove_warning"}}"> + <div class="ui checkbox" {{if and (not .Repository.IsPrivate) (gt .Repository.NumStars 0)}}data-tooltip-content="{{.locale.Tr "repo.stars_remove_warning"}}"{{end}}> {{if .IsAdmin}} <input name="private" type="checkbox" {{if .Repository.IsPrivate}}checked{{end}}> {{else}}